_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
#include <particle.h>
Public Member Functions | |
| ~GraphicAnimation () | |
graphicanimation.cpp - The Graphic Animation class. | |
| GraphicAnimation (CGraphic *g, int ticksPerFrame) | |
| void | draw (int x, int y) |
| void | update (int ticks) |
| bool | isFinished () |
| bool | isVisible (const CViewport &vp, const CPosition &pos) |
| GraphicAnimation * | clone () |
| GraphicAnimation::GraphicAnimation | ( | CGraphic * | g, |
| int | ticksPerFrame | ||
| ) |
|
inline |
| GraphicAnimation * GraphicAnimation::clone | ( | ) |
| void GraphicAnimation::draw | ( | int | x, |
| int | y | ||
| ) |
Draw the current frame of the animation.
| x | x screen coordinate where to draw the animation. |
| y | y screen coordinate where to draw the animation. |
| bool GraphicAnimation::isFinished | ( | ) |
| void GraphicAnimation::update | ( | int | ticks | ) |
Update the animation.
| ticks | the number of ticks elapsed since the last call. |
1.8.9.1
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.