33 lines
648 B
C++
33 lines
648 B
C++
#ifndef _POSITIONCLASS_H_
|
|
#define _POSITIONCLASS_H_
|
|
|
|
|
|
//////////////
|
|
// INCLUDES //
|
|
//////////////
|
|
#include <math.h>
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
// Class name: PositionClass
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
class PositionClass
|
|
{
|
|
public:
|
|
PositionClass();
|
|
PositionClass(const PositionClass&);
|
|
~PositionClass();
|
|
|
|
void SetFrameTime(float);
|
|
void GetRotation(float&);
|
|
|
|
void TurnLeft(bool);
|
|
void TurnRight(bool);
|
|
|
|
private:
|
|
float m_frameTime;
|
|
float m_rotationY;
|
|
float m_leftTurnSpeed, m_rightTurnSpeed;
|
|
};
|
|
|
|
#endif |