____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
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 | |
| CDecoVarSpriteBar () | |
| virtual void | Draw (int x, int y, const CUnit *unit) const |
| function to draw the decorations. | |
Public Attributes | |
| char | SpriteIndex |
| Index of number. (. | |
Definition at line 477 of file unittype.h.
| CDecoVarSpriteBar::CDecoVarSpriteBar | ( | ) | [inline] |
Definition at line 480 of file unittype.h.
| void CDecoVarSpriteBar::Draw | ( | int | x, | |
| int | y, | |||
| const CUnit * | unit | |||
| ) | const [virtual] |
function to draw the decorations.
Draw a sprite with is like a bar (several stages)
| x | X screen pixel position | |
| y | Y screen pixel position | |
| unit | Unit pointer |
Implements CDecoVar.
Definition at line 318 of file unit_draw.cpp.
References Assert, CGraphic::DrawFrameClip(), CGraphic::Height, Decoration::HotX, Decoration::HotY, CDecoVar::Index, int(), CDecoVar::IsCenteredInX, CDecoVar::IsCenteredInY, CVariable::Max, CGraphic::NumFrames, Decoration::Sprite, DecoSpriteType::SpriteArray, SpriteIndex, CVariable::Value, CUnit::Variable, and CGraphic::Width.
Index of number. (.
Definition at line 484 of file unittype.h.
Referenced by CclDefineDecorations(), and Draw().
1.5.6