____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       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"

CVariable Class Reference

#include <unittype.h>

List of all members.

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


Detailed Description

User defined variable type.

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.


Constructor & Destructor Documentation

CVariable::CVariable (  )  [inline]

Definition at line 412 of file unittype.h.


Member Data Documentation

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

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


The documentation for this class was generated from the following file:

Generated on Sat Feb 21 00:28:24 2009 for Bos Wars by  doxygen 1.5.6