LPCGame
A Simple 2d Game Engine
Main Page
Related Pages
Namespaces
Classes
Files
File List
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
19
struct
PhysicalConstants
{
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
Users
Will
Documents
Programs
LPCGame
src
core
motionstate.h
Generated on Tue Jan 29 2013 18:58:09 for LPCGame by
1.8.2