7 // Author: Tobias Glaesser <tobi.web@gmx.de> (C) 2003
9 // Copyright: See COPYING file that comes with this distribution
13 #ifndef SUPERTUX_BADGUY_H
14 #define SUPERTUX_BADGUY_H
22 #include "collision.h"
24 extern texture_type img_bsod_left[4];
25 extern texture_type img_bsod_right[4];
26 extern texture_type img_laptop_left[3];
27 extern texture_type img_money_left[2];
56 BadGuyKind badguykind_from_string(const std::string& str);
57 std::string badguykind_to_string(BadGuyKind kind);
58 void load_badguy_gfx();
59 void free_badguy_gfx();
67 BadGuyData(BadGuyKind kind_, int x_, int y_)
68 : kind(kind_), x(x_), y(y_) {}
71 : kind(BAD_BSOD), x(0), y(0) {}
91 void init(float x, float y, BadGuyKind kind);
96 void collision(void* p_c_object, int c_object,
97 CollisionType type = COLLISION_NORMAL);
100 void fall(bool dojump=false);
106 void action_laptop();
115 void action_mrbomb();
118 void action_stalactite();
119 void draw_stalactite();
124 void make_player_jump(Player* player);
125 void check_horizontal_bump(bool checkcliff = false);
127 void squich(Player* player);
130 #endif /*SUPERTUX_BADGUY_H*/