GEJM  1.0.0.0
a 2D platformer made by students
PlayerController.h
1 #ifndef PLAYERCONTROLLER_H
2 #define PLAYERCONTROLLER_H
3 
4 #include "Controller.h"
5 #include "PlayerCreature.h"
6 #include "Timer.h"
7 #include <SDL_keyboard.h>
8 #include <SDL_events.h>
9 
14 {
15 public:
16 
25 
30 
35  void jump();
36 
44  void control() override;
45 
50 
51 private:
55  bool doJump;
56 
60  bool stopJump;
61 
65  bool grounded;
66 
70  double jumpShortSpeed;
71 
75  double jumpSpeed;
76 
81  void inputHandling();
82 };
83 
84 #endif // PLAYERCONTROLLER_H
PlayerController(PlayerCreature *creature)
Definition: PlayerController.cpp:15
void jump()
Definition: PlayerController.cpp:38
Definition: PlayerController.h:13
PlayerController & operator=(PlayerController const &)=delete
Definition: Controller.h:33
Definition: PlayerCreature.h:11
void control() override
Definition: PlayerController.cpp:75
~PlayerController()
Definition: PlayerController.cpp:29
Creature * creature
Definition: Controller.h:77