- replaced YES/NO with true/false
[supertux.git] / src / special.h
index 1a72906..379979d 100644 (file)
 #include "type.h"
 #include "texture.h"
 #include "collision.h"
+#include "player.h"
+
+/* Upgrade types: */
+
+enum {
+  UPGRADE_MINTS,
+  UPGRADE_COFFEE,
+  UPGRADE_HERRING
+};
 
 typedef struct upgrade_type
   {
     int kind;
     base_type base;
+    base_type old_base;
   }
 upgrade_type;
 
 typedef struct bullet_type
   {
     base_type base;
+    base_type old_base;
   }
 bullet_type;
 
-texture_type img_bullet;
-bitmask* bm_bullet;
+extern texture_type img_bullet;
+extern bitmask* bm_bullet;
 
 void create_special_bitmasks();
 
-texture_type img_golden_herring;
+extern texture_type img_golden_herring;
 
-void upgrade_init(upgrade_type *pupgrade);
+void upgrade_init(upgrade_type *pupgrade, float x, float y, int dir, int kind);
 void upgrade_action(upgrade_type *pupgrade);
 void upgrade_draw(upgrade_type *pupgrade);
 void upgrade_collision(upgrade_type *pupgrade, void* p_c_object, int c_object);
 
-void bullet_init(bullet_type *pbullet);
+void bullet_init(bullet_type* pbullet, float x, float y, float xm, int dir);
 void bullet_action(bullet_type *pbullet);
 void bullet_draw(bullet_type *pbullet);
 void bullet_collision(bullet_type *pbullet, int c_object);