2016-03-12 23:22:28 +00:00
|
|
|
#ifndef DEF_XSPRITEGROUP_H
|
|
|
|
|
|
|
|
#define DEF_XSPRITEGROUP_H
|
|
|
|
|
|
|
|
|
|
|
|
class xSpriteGroup{
|
|
|
|
|
|
|
|
public:
|
|
|
|
xSpriteGroup();
|
2016-03-13 13:53:39 +00:00
|
|
|
~xSpriteGroup();
|
|
|
|
|
|
|
|
void move(int x, int y); // Deplace toutes les sprites
|
|
|
|
|
2016-03-12 23:22:28 +00:00
|
|
|
void add(xSprite *s);
|
|
|
|
void remove(xSprite *s);
|
|
|
|
xSprite* get(int i);
|
|
|
|
|
2016-03-13 17:33:47 +00:00
|
|
|
void push(string index); // Ajoute les sprites a l'affichage
|
|
|
|
void pull(string index); // Retire les sprites de l'affichage
|
2016-03-12 23:22:28 +00:00
|
|
|
|
|
|
|
void update(); // Fait renmonter la mise a jour du manager
|
|
|
|
|
2016-03-13 13:53:39 +00:00
|
|
|
protected:
|
2016-03-12 23:22:28 +00:00
|
|
|
vector<xSprite*> _sprites;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|