_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include <unittype.h>
Public Member Functions | |
CVariable () | |
bool | operator== (const CVariable &rhs) const |
bool | operator!= (const CVariable &rhs) const |
Public Attributes | |
int | Max |
int | Value |
Maximum for the variable. (Assume min is 0.) More... | |
char | Increase |
Current (or initial) value of the variable (or initial value). More... | |
unsigned char | IncreaseFrequency:7 |
Number to increase(decrease) Value by second. More... | |
unsigned char | Enable:1 |
Every how many seconds we should apply the increase. More... | |
User defined variable type.
It is used to define variables and use it after to manage magic, energy, shield or other stuff.
|
inline |
|
inline |
|
inline |
unsigned char CVariable::Enable |
Every how many seconds we should apply the increase.
char CVariable::Increase |
Current (or initial) value of the variable (or initial value).
unsigned char CVariable::IncreaseFrequency |
Number to increase(decrease) Value by second.
int CVariable::Max |
int CVariable::Value |
Maximum for the variable. (Assume min is 0.)