create lisp code on the fly (still no enemies showing up in editor, no idea why....
[supertux.git] / src / badguy / snowball.h
index 99a65d6..172aac9 100644 (file)
@@ -6,14 +6,18 @@
 class SnowBall : public BadGuy
 {
 public:
-  SnowBall(LispReader& reader);
+  SnowBall(const lisp::Lisp& reader);
+  SnowBall(float pos_x, float pos_y, Direction d);
 
   void activate();
-  void write(LispWriter& writer);
+  void write(lisp::Writer& writer);
   HitResponse collision_solid(GameObject& other, const CollisionHit& hit);
+  HitResponse collision_badguy(BadGuy& other, const CollisionHit& hit);
   
 protected:
   bool collision_squished(Player& player);
+  bool set_direction;
+  Direction initial_direction;  
 };
 
 #endif