____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       A futuristic real-time strategy game.
          This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project. Distributed under the "GNU General Public License"

upgrade.h File Reference

The upgrades headerfile. More...

Go to the source code of this file.

Functions

void SaveUpgrades (CFile *file)
 < save the upgrades
void UpgradesCclRegister (void)
int UnitTypeIdByIdent (const std::string &sid)
int UnitIdAllowed (const CPlayer *player, int id)


Detailed Description

The upgrades headerfile.

Definition in file upgrade.h.


Function Documentation

void SaveUpgrades ( CFile file  ) 

< save the upgrades

Register CCL features for upgrades

Save state of the dependencies to file.

Parameters:
file Output file.

Definition at line 70 of file upgrade.cpp.

References PlayerMax, Players, CFile::printf(), CPlayer::Units, and UnitTypes.

Referenced by SaveGame().

int UnitIdAllowed ( const CPlayer player,
int  id 
)

Return the allow state of the unit.

Parameters:
player Check state of this player.
id Unit identifier.
Returns:
the allow state of the unit.

Definition at line 226 of file upgrade.cpp.

References CPlayer::Allow, Assert, CAllow::Units, and UnitTypeMax.

Referenced by AiCountUnitBuilders().

int UnitTypeIdByIdent ( const std::string &  ident  ) 

UnitType ID by identifier.

Parameters:
ident The unit-type identifier.
Returns:
Unit-type ID (int) or -1 if not found.

Definition at line 188 of file upgrade.cpp.

References _C_, Assert, DebugPrint, CUnitType::Slot, and UnitTypeByIdent().

Referenced by AddButton(), CclDefineAllow(), and CclDefineUnitAllow().

void UpgradesCclRegister ( void   ) 

Register CCL features for upgrades.

Definition at line 169 of file upgrade.cpp.

References CclDefineAllow(), CclDefineUnitAllow(), and Lua.

Referenced by InitCcl().


Generated on Sat Feb 21 00:28:22 2009 for Bos Wars by  doxygen 1.5.6