class EasyImageSprite

Sprite which contains image More...

Definition#include <easyimagesprite.h>
InheritsEasySprite [public ]
Inherited byEasyMultiSprite
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Members


Detailed Description

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:
timeTime of moving in milliseconds

Reimplemented from EasySprite.

int  loadFromFile (char *img_fn)

loadFromFile

Loads sprite surface from image file

Parameters:
img_fnImage filename

SDL_Surface * surface

surface

[protected]