$treeview $search $mathjax
Stratagus  2.2.7
$projectbrief
$projectbrief
$searchbox
-->
         _________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

GraphicAnimation Class Reference

#include <particle.h>

Inheritance diagram for GraphicAnimation:

Animation

List of all members.


Public Member Functions

virtual ~GraphicAnimation ()
graphicanimation.cpp - The Graphic Animation class.
 GraphicAnimation (CGraphic *g, int ticksPerFrame)
virtual void draw (int x, int y)
virtual void update (int ticks)
virtual bool isFinished ()
virtual Animationclone ()

Constructor & Destructor Documentation

GraphicAnimation::GraphicAnimation ( CGraphic g,
int  ticksPerFrame 
)

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


Member Function Documentation

void GraphicAnimation::draw ( int  x,
int  y 
) [virtual]

Draw the current frame of the animation.

Parameters:
x x screen coordinate where to draw the animation.
y y screen coordinate where to draw the animation.

Implements Animation.

void GraphicAnimation::update ( int  ticks  )  [virtual]

Update the animation.

Parameters:
ticks the number of ticks elapsed since the last call.

Implements Animation.

bool GraphicAnimation::isFinished (  )  [virtual]

Implements Animation.

Animation * GraphicAnimation::clone (  )  [virtual]

Implements Animation.


The documentation for this class was generated from the following files:
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.