____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
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"#include <unittype.h>

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. | |
Definition at line 447 of file unittype.h.
| CDecoVar::CDecoVar | ( | ) | [inline] |
Definition at line 450 of file unittype.h.
| virtual CDecoVar::~CDecoVar | ( | ) | [inline, virtual] |
Definition at line 451 of file unittype.h.
| virtual void CDecoVar::Draw | ( | int | x, | |
| int | y, | |||
| const CUnit * | unit | |||
| ) | const [pure virtual] |
| int CDecoVar::Index |
Index of the variable.
Definition at line 456 of file unittype.h.
Referenced by CclDefineDecorations(), and CDecoVarSpriteBar::Draw().
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().
| bool CDecoVar::HideAllied |
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().
1.5.6