class EasySprite

More...

Contains pure virtuals
Definition#include <easysprite.h>
Inherited byEasyImageSprite, EasyMultiSprite, EasySpriteEngine, EasySpritePlane
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Members

Protected Members


Detailed Description

 ~EasySprite ()

~EasySprite

[virtual]

void  show ()

show

[virtual]

Shows the sprite

void  hide ()

hide

[virtual]

Hides the sprite

void  draw (SDL_Surface *surface)

draw

[pure virtual]

Draws the sprite

 EasySprite (float x=0.0, float y=0.0, int visible=true)

EasySprite

Creates sprite

void  updateRect ()

updateRect

[pure virtual]

Updates sprite's rect and collision_rect due to changes of it's position and(or) surface

void  doMove (int time)

doMove

[virtual]

Moves the sprite

Parameters:
timeTime of moving in milliseconds

float x

x

float y

y

SDL_Rect rect

rect

SDL_Rect collision_rect

collision_rect

int visible

visible

[protected]