LPCGame
A Simple 2d Game Engine
|
For tracking an object's motion state. More...
#include <motionstate.h>
Public Types | |
enum | { IDLE, RUNNING } |
enum for describing motion states | |
Public Member Functions | |
void | UpdateState (Kinematic kinematic) |
int | State () const |
Get the motion state,. | |
void | SetMotionState (int state) |
Set the motion state. | |
For tracking an object's motion state.
Describes the state of an object's motion This isn't really used much at the motion, but will come into play when showing animations for the object's actions
int MotionState::State | ( | ) | const |
Get the motion state,.
void MotionState::UpdateState | ( | Kinematic | kinematic | ) |
Update the object's motion state based on its current motion
kinematic | The object's kinematic component |