$treeview $search $mathjax
Stratagus
2.2.7
$projectbrief
|
$projectbrief
|
$searchbox |
_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ 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.). | |
char | Increase |
Current (or initial) value of the variable (or initial value). | |
char | Enable |
Number to increase(decrease) Value by second. |
It is used to define variables and use it after to manage magic, energy, shield or other stuff.
CVariable::CVariable | ( | ) | [inline] |
bool CVariable::operator== | ( | const CVariable & | rhs | ) | const [inline] |
bool CVariable::operator!= | ( | const CVariable & | rhs | ) | const [inline] |
int CVariable::Max |
int CVariable::Value |
Maximum for the variable. (Assume min is 0.).
char CVariable::Increase |
Current (or initial) value of the variable (or initial value).
char CVariable::Enable |
Number to increase(decrease) Value by second.