_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
CVariable Class Reference

#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...
 
char Enable
 Number to increase(decrease) Value by second. More...
 

Detailed Description

User defined variable type.

It is used to define variables and use it after to manage magic, energy, shield or other stuff.

Constructor & Destructor Documentation

CVariable::CVariable ( )
inline

Member Function Documentation

bool CVariable::operator!= ( const CVariable rhs) const
inline
bool CVariable::operator== ( const CVariable rhs) const
inline

Member Data Documentation

char CVariable::Enable

Number to increase(decrease) Value by second.

char CVariable::Increase

Current (or initial) value of the variable (or initial value).

int CVariable::Max
int CVariable::Value

Maximum for the variable. (Assume min is 0.)


The documentation for this class was generated from the following file:
(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.