|
|
Sprite which contains image
~EasyImageSprite ()
| ~EasyImageSprite |
EasyImageSprite (SDL_Surface *surface = NULL)
| EasyImageSprite |
Create a sprite from SDL surface surface
EasyImageSprite (char *img_fn)
| EasyImageSprite |
Create a sprite from image file img_fn
void draw (SDL_Surface *surface)
| draw |
Draws sprite's surface on engine's surface
Reimplemented from EasySprite.
void setSurface (SDL_Surface *surface)
| setSurface |
[virtual]
Sets surface property
SDL_Surface * getSurface ()
| getSurface |
[virtual]
Gets surface property
void updateRect ()
| updateRect |
Updates sprite's rect and collision_rect due to changes of it's position and(or) surface
Reimplemented from EasySprite.
void doMove (int time)
| doMove |
Moves the sprite
Parameters:
time | Time of moving in milliseconds |
Reimplemented from EasySprite.
int loadFromFile (char *img_fn)
| loadFromFile |
Loads sprite surface from image file
Parameters:
img_fn | Image filename |
SDL_Surface * surface | surface |
[protected]