Roguelike
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
controller_player.h
Go to the documentation of this file.
1 #ifndef ROGUELIKE_COMPONENT_CONTROLLER_PLAYER_H_
2 #define ROGUELIKE_COMPONENT_CONTROLLER_PLAYER_H_
3 
4 // Inheritance
6 
7 // External Dependencies
8 #include <ugdk/math/integer2D.h> // where_to_
9 #include <ugdk/time/timeaccumulator.h> // time_held_
10 #include <ugdk/graphic/node.h>
11 
12 // Internal Dependencies
14 #include "game/action/aim.h"
15 
16 // Forward Declarations
17 #include <ugdk/time.h>
18 #include "game/base.h"
19 
20 namespace game {
21 namespace component {
22 
23 class ControllerPlayer : public Controller {
24  typedef Controller super;
25  public:
28 
30 
31  private:
33  ugdk::math::Integer2D movement();
34 
35  ugdk::math::Integer2D where_to_;
36  ugdk::time::TimeAccumulator time_held_;
37  ugdk::time::TimeAccumulator hold_tick_;
38 
40 
41  bool held_movement_adjusted_;
42 };
43 
44 } // namespace component
45 } // namespace game
46 
47 #endif // ROGUELIKE_COMPONENT_CONTROLLER_PLAYER_H_
Definition: gameobject.h:53
Definition: controller.h:21
Definition: aim.cc:15
ControllerPlayer(game::base::GameObject *owner)
Definition: controller_player.cc:36
Definition: aim.h:20
Definition: componentbase.h:19
Definition: timeelapsed.h:20
action::time::TimeElapsed Act()
Definition: controller_player.cc:45
Definition: gamecontroller.h:23
Definition: controller_player.h:23
~ControllerPlayer()
Definition: controller_player.cc:43