Explosion(const Reader& reader);
void update(float elapsed_time);
+ void draw(DrawingContext& context);
HitResponse collision(GameObject& other, const CollisionHit& hit);
+ bool hurts (void) const
+ {
+ return this->hurt;
+ }
+
+ void hurts (bool val)
+ {
+ this->hurt = val;
+ }
+
+ bool pushes (void) const
+ {
+ return this->push;
+ }
+
+ void pushes (bool val)
+ {
+ this->push = val;
+ }
+
protected:
/**
* plays sound, starts animation
STATE_WAITING,
STATE_EXPLODING
};
+ bool hurt;
+ bool push;
State state;
+ Color light;
+ SpritePtr lightsprite;
};