Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

Sprite Class Reference

#include <CSprite.h>

Inheritance diagram for Sprite:

GameObject List of all members.

Public Member Functions

 Sprite ()
void setFrame (int i, SDL_Surface *shape, int time)
void animate ()
void getNextFrame (unsigned char *frame, unsigned char *time)
SDL_Surface * getCurrentFrame ()
void free ()

Public Attributes

char name [50]
SDL_Surface * image [8]
unsigned char frameLength [8]
unsigned char currentFrame
unsigned char currentTime
unsigned char maxFrames
bool randomFrames

Constructor & Destructor Documentation

Sprite::Sprite  ) 
 


Member Function Documentation

void Sprite::animate  ) 
 

void Sprite::free  ) 
 

SDL_Surface * Sprite::getCurrentFrame  ) 
 

void Sprite::getNextFrame unsigned char *  frame,
unsigned char *  time
 

void Sprite::setFrame int  i,
SDL_Surface *  shape,
int  time
 


Member Data Documentation

unsigned char Sprite::currentFrame
 

unsigned char Sprite::currentTime
 

unsigned char Sprite::frameLength[8]
 

SDL_Surface* Sprite::image[8]
 

unsigned char Sprite::maxFrames
 

char Sprite::name[50]
 

bool Sprite::randomFrames
 


The documentation for this class was generated from the following files:
Generated on Thu Dec 2 20:26:04 2004 for Blob Wars : Metal Blob Solid by doxygen 1.3.7