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

       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"

CDecoVar Class Reference

#include <unittype.h>

Inheritance diagram for CDecoVar:

CDecoVarSpriteBar

List of all members.

Public Member Functions

 CDecoVar ()
virtual ~CDecoVar ()
virtual void Draw (int x, int y, const CUnit *unit) const =0
 function to draw the decorations.

Public Attributes

int Index
 Index of the variable.
int OffsetX
 Offset in X coord.
int OffsetY
 Offset in Y coord.
int OffsetXPercent
 Percent offset (TileWidth) in X coord.
int OffsetYPercent
 Percent offset (TileHeight) in Y coord.
bool IsCenteredInX
 if true, use center of deco instead of left border
bool IsCenteredInY
 if true, use center of deco instead of upper border
bool ShowIfNotEnable
 if false, Show only if var is enable
bool ShowWhenMax
 if false, don't show if var is to max. (Like mana)
bool ShowOnlySelected
 if true, show only for selected units.
bool HideNeutral
 if true, don't show for neutral unit.
bool HideAllied
 if true, don't show for allied unit. (but show own units)
bool ShowOpponent
 if true, show for opponent unit.


Detailed Description

Decoration for user defined variable.

Definition at line 447 of file unittype.h.


Constructor & Destructor Documentation

CDecoVar::CDecoVar (  )  [inline]

Definition at line 450 of file unittype.h.

virtual CDecoVar::~CDecoVar (  )  [inline, virtual]

Definition at line 451 of file unittype.h.


Member Function Documentation

virtual void CDecoVar::Draw ( int  x,
int  y,
const CUnit unit 
) const [pure virtual]

function to draw the decorations.

Implemented in CDecoVarSpriteBar.


Member Data Documentation

Index of the variable.

See also:
DefineVariables

Definition at line 456 of file unittype.h.

Referenced by CclDefineDecorations(), and CDecoVarSpriteBar::Draw().

Offset in X coord.

Definition at line 458 of file unittype.h.

Referenced by CclDefineDecorations().

Offset in Y coord.

Definition at line 459 of file unittype.h.

Referenced by CclDefineDecorations().

Percent offset (TileWidth) in X coord.

Definition at line 461 of file unittype.h.

Referenced by CclDefineDecorations().

Percent offset (TileHeight) in Y coord.

Definition at line 462 of file unittype.h.

Referenced by CclDefineDecorations().

if true, use center of deco instead of left border

Definition at line 464 of file unittype.h.

Referenced by CclDefineDecorations(), and CDecoVarSpriteBar::Draw().

if true, use center of deco instead of upper border

Definition at line 465 of file unittype.h.

Referenced by CclDefineDecorations(), and CDecoVarSpriteBar::Draw().

if false, Show only if var is enable

Definition at line 467 of file unittype.h.

Referenced by CclDefineDecorations().

if false, don't show if var is to max. (Like mana)

Definition at line 468 of file unittype.h.

Referenced by CclDefineDecorations().

if true, show only for selected units.

Definition at line 469 of file unittype.h.

Referenced by CclDefineDecorations().

if true, don't show for neutral unit.

Definition at line 471 of file unittype.h.

Referenced by CclDefineDecorations().

if true, don't show for allied unit. (but show own units)

Definition at line 472 of file unittype.h.

Referenced by CclDefineDecorations().

if true, show for opponent unit.

Definition at line 473 of file unittype.h.

Referenced by CclDefineDecorations().


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

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