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

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...
 
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...
 

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::CVariable ( )
inline

Member Function Documentation

◆ operator!=()

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

◆ operator==()

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

Member Data Documentation

◆ Enable

unsigned char CVariable::Enable

Every how many seconds we should apply the increase.

◆ Increase

char CVariable::Increase

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

◆ IncreaseFrequency

unsigned char CVariable::IncreaseFrequency

Number to increase(decrease) Value by second.

◆ Max

int CVariable::Max

◆ Value

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.