_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
#include <upgrade_structs.h>
Public Member Functions | |
| CUpgradeModifier () | |
| ~CUpgradeModifier () | |
Public Attributes | |
| int | UpgradeId |
| CUnitStats | Modifier |
| used to filter required modifier More... | |
| int * | ModifyPercent |
| modifier of unit stats. More... | |
| int | SpeedResearch |
| use for percent modifiers More... | |
| int | ImproveIncomes [MaxCosts] |
| speed factor for researching More... | |
| int | ChangeUnits [UnitTypeMax] |
| improve incomes More... | |
| char | ChangeUpgrades [UpgradeMax] |
| add/remove allowed units More... | |
| char | ApplyTo [UnitTypeMax] |
| allow/forbid upgrades More... | |
| CUnitType * | ConvertTo |
| which unit types are affected More... | |
This is the modifier of an upgrade. This do the real action of an upgrade, an upgrade can have multiple modifiers.
|
inline |
|
inline |
| char CUpgradeModifier::ApplyTo[UnitTypeMax] |
allow/forbid upgrades
| int CUpgradeModifier::ChangeUnits[UnitTypeMax] |
improve incomes
| char CUpgradeModifier::ChangeUpgrades[UpgradeMax] |
add/remove allowed units
| CUnitType* CUpgradeModifier::ConvertTo |
which unit types are affected
| int CUpgradeModifier::ImproveIncomes[MaxCosts] |
speed factor for researching
| CUnitStats CUpgradeModifier::Modifier |
used to filter required modifier
| int* CUpgradeModifier::ModifyPercent |
modifier of unit stats.
| int CUpgradeModifier::SpeedResearch |
use for percent modifiers
| int CUpgradeModifier::UpgradeId |
1.8.17
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.