32 lines
613 B
C
32 lines
613 B
C
|
#ifndef DEF_XSPRITEGROUP_H
|
||
|
|
||
|
#define DEF_XSPRITEGROUP_H
|
||
|
|
||
|
|
||
|
class xSpriteGroup{
|
||
|
|
||
|
public:
|
||
|
xSpriteGroup();
|
||
|
~xSpriteGroup();
|
||
|
|
||
|
void move(int x, int y); // Deplace toutes les sprites
|
||
|
|
||
|
void add(xSprite *s);
|
||
|
void remove(xSprite *s);
|
||
|
xSprite* get(int i);
|
||
|
|
||
|
void push(string index); // Ajoute les sprites a l'affichage
|
||
|
void pull(string index); // Retire les sprites de l'affichage
|
||
|
void pull(); // Retire les sprites de l'affichage
|
||
|
|
||
|
void update(); // Fait renmonter la mise a jour du manager
|
||
|
|
||
|
protected:
|
||
|
vector<xSprite*> _sprites;
|
||
|
|
||
|
string _index;
|
||
|
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif
|