#include <vector>
-struct player_keymap_type
+struct PlayerKeymap
{
+public:
int jump;
int duck;
int left;
int right;
int fire;
+
+ PlayerKeymap();
};
+extern PlayerKeymap keymap;
+
struct player_input_type
{
int right;
class Player
{
- public:
- player_keymap_type keymap;
-
+public:
player_input_type input;
bool got_coffee;
int size;
bool duck;
DyingType dying;
- int dir;
+
+ Direction dir;
+
bool jumping;
int frame_;
int frame_main;
Timer frame_timer;
Physic physic;
- public:
+public:
void init();
int key_event(SDLKey key, int state);
void level_begin();
bool on_ground();
bool under_solid();
- private:
+private:
void handle_horizontal_input();
void handle_vertical_input();
void remove_powerups();
};
#endif /*SUPERTUX_PLAYER_H*/
+
+/* Local Variables: */
+/* mode:c++ */
+/* End: */