LPCGame
A Simple 2d Game Engine
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
MotionState Class Reference

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.
 

Detailed Description

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

Member Function Documentation

int MotionState::State ( ) const

Get the motion state,.

See Also
MotionState enum
void MotionState::UpdateState ( Kinematic  kinematic)

Update the object's motion state based on its current motion

Parameters
kinematicThe object's kinematic component

The documentation for this class was generated from the following files: