Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

AnimatedImage Class Reference

#include </home/clem/local/src/opie/noncore/games/sfcave-sdl/animatedimage.h>

List of all members.

Public Member Functions

 AnimatedImage (string file, int nFrames)
 ~AnimatedImage ()
bool nextFrame ()
void draw (SDL_Surface *screen, int x, int y)
bool AtEnd ()
void reset ()

Private Attributes

SDL_Surface * image
int nrFrames
int currentFrame
int frameWidth
int frameHeight


Constructor & Destructor Documentation

AnimatedImage::AnimatedImage string  file,
int  nFrames
 

Definition at line 7 of file animatedimage.cpp.

References currentFrame, frameHeight, frameWidth, image, and nrFrames.

AnimatedImage::~AnimatedImage  ) 
 

Definition at line 26 of file animatedimage.cpp.

References image.


Member Function Documentation

bool AnimatedImage::AtEnd  ) 
 

Definition at line 62 of file animatedimage.cpp.

References currentFrame, image, and nrFrames.

void AnimatedImage::draw SDL_Surface *  screen,
int  x,
int  y
 

Definition at line 45 of file animatedimage.cpp.

References currentFrame, frameHeight, frameWidth, and image.

Referenced by Player::draw().

bool AnimatedImage::nextFrame  ) 
 

Definition at line 32 of file animatedimage.cpp.

References currentFrame, nrFrames, and rc.

Referenced by Player::updateCrashing().

void AnimatedImage::reset  )  [inline]
 

Definition at line 15 of file animatedimage.h.

References currentFrame.

Referenced by Player::init().


Member Data Documentation

int AnimatedImage::currentFrame [private]
 

Definition at line 20 of file animatedimage.h.

Referenced by AnimatedImage(), AtEnd(), draw(), nextFrame(), and reset().

int AnimatedImage::frameHeight [private]
 

Definition at line 23 of file animatedimage.h.

Referenced by AnimatedImage(), and draw().

int AnimatedImage::frameWidth [private]
 

Definition at line 22 of file animatedimage.h.

Referenced by AnimatedImage(), and draw().

SDL_Surface* AnimatedImage::image [private]
 

Definition at line 18 of file animatedimage.h.

Referenced by AnimatedImage(), AtEnd(), draw(), and ~AnimatedImage().

int AnimatedImage::nrFrames [private]
 

Definition at line 19 of file animatedimage.h.

Referenced by AnimatedImage(), AtEnd(), and nextFrame().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:26:23 2005 for OPIE by  doxygen 1.4.2