$treeview $search $mathjax
Stratagus  2.2.7
$projectbrief
$projectbrief
$searchbox
-->
         _________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

src/include/depend.h File Reference

Go to the source code of this file.


Classes

class  DependRule
 Dependency rule. More...

depend.h - The units/upgrade dependencies headerfile.

enum  { DependRuleUnitType, DependRuleUpgrade }
void DependenciesCclRegister ()
 Register CCL features for dependencies.
void InitDependencies ()
 Init the dependencies.
void CleanDependencies ()
 Cleanup dependencies module.
bool CheckDependByIdent (const CPlayer &player, const std::string &target)
 Check a dependency by identifier.
bool CheckDependByType (const CPlayer &player, const CUnitType &type)
 Check a dependency by unit type.

Enumeration Type Documentation

anonymous enum

Enumerator:
DependRuleUnitType 
DependRuleUpgrade  Kind is an unit-type.

Kind is an upgrade


Function Documentation

bool CheckDependByIdent ( const CPlayer player,
const std::string &  target 
)

Check a dependency by identifier.

Check if this upgrade or unit is available.

Parameters:
player For this player available.
target Unit or Upgrade.
Returns:
True if available, false otherwise.

bool CheckDependByType ( const CPlayer player,
const CUnitType type 
)

Check a dependency by unit type.

Check if this upgrade or unit is available.

Parameters:
player For this player available.
target Unit or Upgrade.
Returns:
True if available, false otherwise.

void CleanDependencies (  ) 

Cleanup dependencies module.

Clean up unit and upgrade dependencies.

void DependenciesCclRegister (  ) 

Register CCL features for dependencies.

Register CCL features for dependencies.

void InitDependencies (  ) 

Init the dependencies.

Initialize unit and upgrade dependencies.

(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.