2016-03-13 13:53:39 +00:00
|
|
|
#ifndef DEF_XMARIOGREENSHELL_H
|
|
|
|
|
|
|
|
#define DEF_XMARIOGREENSHELL_H
|
|
|
|
|
|
|
|
class xMarioGreenShell : public xSpriteAnimation{
|
|
|
|
|
|
|
|
public:
|
|
|
|
xMarioGreenShell(xManager *manager, int x, int y); // Spritesheet avec taille de chaque sprite
|
2016-03-17 09:17:21 +00:00
|
|
|
|
|
|
|
void onCollide(vector<int> from, xSprite* by);
|
|
|
|
|
|
|
|
|
2016-03-18 07:55:50 +00:00
|
|
|
void autoMove();
|
2016-03-17 09:17:21 +00:00
|
|
|
|
|
|
|
bool active(); // Retourne si le bloc est actif ou non
|
|
|
|
void active(bool active); // Active ou non le bloc
|
|
|
|
|
|
|
|
private:
|
|
|
|
bool _active;
|
|
|
|
bool _intouch;
|
|
|
|
|
2016-03-13 13:53:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|