Don't show selection cursor when help is being displayed.
[supertux.git] / src / special.h
index 1cdbc4c..24ce8c2 100644 (file)
@@ -40,19 +40,20 @@ enum UpgradeKind {
 void load_special_gfx();
 void free_special_gfx();
 
-class Upgrade
+class Upgrade : public GameObject
 {
 public:
   UpgradeKind kind;
   Direction  dir;
-  base_type base;
-  base_type old_base;
   Physic physic;
 
   void init(float x, float y, Direction dir, UpgradeKind kind);
   void action(double frame_ratio);
   void draw();
-  void collision(void* p_c_object, int c_object);
+  void collision(void* p_c_object, int c_object, CollisionType type);
+  std::string type() { return "Upgrade"; };
+  
+  ~Upgrade() {};
 
 private:
   /** removes the Upgrade from the global upgrade list. Note that after this
@@ -60,11 +61,14 @@ private:
    * anymore then
    */
   void remove_me();
+
+  void bump(Player* player);
 };
 
-class Bullet
+class Bullet : public GameObject
 {
  public:
+  int life_count;
   base_type base;
   base_type old_base;
   
@@ -72,6 +76,7 @@ class Bullet
   void action(double frame_ratio);
   void draw();
   void collision(int c_object);
+  std::string type() { return "Bullet"; };
 
 private:
   /** removes the Upgrade from the global upgrade list. Note that after this