class EasySpritePlane

Contains sprites situated in one plane More...

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

Public Methods

Public Members

Protected Members


Detailed Description

Contains sprites situated in one plane

 EasySpritePlane (int capacity = 32)

EasySpritePlane

 ~EasySpritePlane ()

~EasySpritePlane

void  add (EasySprite *sprite)

add

Adds a sprite to plane

int  increaseCapacity ()

increaseCapacity

EasySprite *  getSprite (int number)

getSprite

Returns sprite owned by plane

Parameters:
numbernumber of sprite to retun

void  insert (EasySprite *sprite, int position)

insert

Inserts sprite to the the list

Parameters:
positionposition to insert sprite to

void  updateRect ()

updateRect

Removes sprite from plane

Parameters:
numbernumber of sprite to delete */ void remove(int number); /** Draws the plane on surface
surfacesurface to draw plane to */ void draw(SDL_Surface *surface); /** Does nothing dirty-hack to make compiler not to say it's not implemented abstarct

Reimplemented from EasySprite.

void  doMove (int time)

doMove

Moves all sprites in plane @parsm time time passed after last doMove call

Reimplemented from EasySprite.

int count

count

int capacity

capacity

EasySprite ** data

data

[protected]