_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
Go to the documentation of this file.
51 #define UPGRADE_MODIFIERS_MAX (UpgradeMax * 4)
111 #endif // !__UPGRADE_H__
Diplomacy states for CommandDiplomacy.
Definition: player.h:83
void CleanUpgrades()
cleanup upgrade module
Definition: upgrade.cpp:183
int NumUpgradeModifiers
Number of upgrades modifiers used.
Definition: upgrade.cpp:73
int UnitTypeIdByIdent(const std::string &sid)
Definition: upgrade.cpp:458
void SaveUpgrades(CFile &file)
save the upgrades
Definition: upgrade.cpp:207
char UpgradeIdAllowed(const CPlayer &player, int id)
Definition: upgrade.cpp:1100
Definition: upgrade_structs.h:154
void UpgradeAcquire(CPlayer &player, const CUpgrade *upgrade)
Upgrade will be acquired.
Definition: upgrade.cpp:935
void InitUpgrades()
init upgrade/allow structures
Definition: upgrade.cpp:176
void IndividualUpgradeLost(CUnit &unit, const CUpgrade *upgrade)
Make a unit acquire in individual upgrade.
Definition: upgrade.cpp:1027
#define UPGRADE_MODIFIERS_MAX
How many upgrades modifiers supported.
Definition: upgrade.h:51
void ApplyUpgrades()
Apply researched upgrades when map is loading.
Definition: upgrade.cpp:985
void UpgradesCclRegister()
Register CCL features for upgrades.
Definition: upgrade.cpp:438
CUpgradeModifier * UpgradeModifiers[UPGRADE_MODIFIERS_MAX]
The main user useable upgrades.
Definition: upgrade.cpp:71
char UpgradeIdentAllowed(const CPlayer &player, const std::string &ident)
Definition: upgrade.cpp:1116
void UpgradeLost(CPlayer &player, int id)
Upgrade will be lost.
Definition: upgrade.cpp:962
void IndividualUpgradeAcquire(CUnit &unit, const CUpgrade *upgrade)
Apply upgrade modifier of an individual upgrade.
Definition: upgrade.cpp:1007
void ApplyIndividualUpgradeModifier(CUnit &unit, const CUpgradeModifier *um)
Definition: upgrade.cpp:862
Definition: upgrade_structs.h:182
int UnitIdAllowed(const CPlayer &player, int id)
Make a unit lose in individual upgrade.
Definition: upgrade.cpp:1086
int UpgradeIdByIdent(const std::string &sid)
Definition: upgrade.cpp:475
void AllowUpgradeId(CPlayer &player, int id, char af)
Definition: upgrade.cpp:1072
The big unit structure.
Definition: unit.h:135
(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.