____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
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"#include <unittype.h>
Public Member Functions | |
| CVariable () | |
Public Attributes | |
| int | Max |
| Maximum for the variable. (Assume min is 0.). | |
| int | Value |
| Current (or initial) value of the variable (or initial value). | |
| char | Increase |
| Number to increase(decrease) Value by second. | |
| char | Enable |
| True if the unit doesn't have this variable. (f.e shield). | |
It is used to define variables and use it after to manage magic, energy, shield or other stuff.
Definition at line 410 of file unittype.h.
| CVariable::CVariable | ( | ) | [inline] |
Definition at line 412 of file unittype.h.
| int CVariable::Max |
Maximum for the variable. (Assume min is 0.).
Definition at line 414 of file unittype.h.
Referenced by MissileFire::Action(), AiCheckRepair(), AttackTarget(), AttackUnitsInDistance(), AttackUnitsInRange(), Capture::Cast(), Polymorph::Cast(), AdjustVitals::Cast(), AdjustVariable::Cast(), AreaAdjustVitals::Cast(), CclDefineUnitType(), CclSetUnitVariable(), CheckForTargetInRange(), CommandAttack(), CommandAttackGround(), DefineVariableField(), DoRepair(), DoRightButton(), CDecoVarSpriteBar::Draw(), DrawDecoration(), DrawInformations(), DrawUnitInfo(), DrawUnitStats(), FindRangeAttack(), GatherResource(), HandleActionBuilt(), HandleActionDie(), HandleBuffs(), HandleRegenerations(), HitUnit(), LetUnitDie(), MoveToLocation(), MoveToTarget(), PassCondition(), SaveUnit(), SendRepair(), UiDrawLifeBar(), UiDrawManaBar(), UnitToRepairInRange(), UpdateStats(), UpdateUnitSightRange(), and UpdateUnitVariables().
| int CVariable::Value |
Current (or initial) value of the variable (or initial value).
Definition at line 415 of file unittype.h.
Referenced by MissileFire::Action(), AiCheckRepair(), AttackUnitsInDistance(), AutoCastSpell(), AutoRepair(), CalculateDamage(), Summon::Cast(), Capture::Cast(), Polymorph::Cast(), AdjustVitals::Cast(), AdjustVariable::Cast(), AreaAdjustVitals::Cast(), CclDefineUnitType(), CclGetUnitVariable(), CclSetUnitVariable(), DefineVariableField(), DoRepair(), DoRightButton(), CDecoVarSpriteBar::Draw(), DrawDecoration(), DrawPopup(), DrawUnitInfo(), DrawUnitStats(), FindRangeAttack(), GatherResource(), HandleActionBuilt(), HandleActionSpellCast(), HandleBuffs(), HandleRegenerations(), HitUnit(), MapMarkUnitSight(), MapUnmarkUnitSight(), MoveToLocation(), PassCondition(), SaveUnit(), SendRepair(), SpellCast(), StartBuilding(), UiDrawLifeBar(), UiDrawManaBar(), UnitToRepairInRange(), and UpdateUnitVariables().
| char CVariable::Increase |
Number to increase(decrease) Value by second.
Definition at line 416 of file unittype.h.
Referenced by AdjustVariable::Cast(), CclDefineUnitType(), DefineVariableField(), HandleBuffs(), HandleRegenerations(), and SaveUnit().
| char CVariable::Enable |
True if the unit doesn't have this variable. (f.e shield).
Definition at line 417 of file unittype.h.
Referenced by Capture::Cast(), Polymorph::Cast(), AdjustVariable::Cast(), CclDefineUnitType(), DefineVariableField(), DrawDecoration(), HandleBuffs(), HitUnit(), PassCondition(), SaveUnit(), and UpdateUnitVariables().
1.5.6