25 lines
412 B
C
25 lines
412 B
C
|
#ifndef DEF_XSPRITEGROUP_H
|
||
|
|
||
|
#define DEF_XSPRITEGROUP_H
|
||
|
|
||
|
|
||
|
class xSpriteGroup{
|
||
|
|
||
|
public:
|
||
|
xSpriteGroup();
|
||
|
void add(xSprite *s);
|
||
|
void remove(xSprite *s);
|
||
|
xSprite* get(int i);
|
||
|
|
||
|
void push(); // Ajoute les sprites a l'affichage
|
||
|
void pull(); // Retire les sprites de l'affichage
|
||
|
|
||
|
void update(); // Fait renmonter la mise a jour du manager
|
||
|
|
||
|
private:
|
||
|
vector<xSprite*> _sprites;
|
||
|
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif
|