LPCGame
A Simple 2d Game Engine
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
motionstate.h
1 #ifndef MOTIONSTATE_H
2 #define MOTIONSTATE_H
3 
4 #include "vectors.h"
5 
7 
10 struct Kinematic {
11  Vector2f Vel, Accel;
12 };
13 
15 
20  int hAccel, hSpeed;
21 };
22 
24 
29 class MotionState {
30 public:
31  MotionState();
32  ~MotionState();
37  void UpdateState(Kinematic kinematic);
39  int State() const;
41  void SetMotionState(int state);
43  enum { IDLE, RUNNING };
44 
45 private:
46  int mState;
47 };
48 
49 #endif