#include <CSprite.h>
Inheritance diagram for Sprite:
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 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|