2008-06-24 03:17:31 -07:00
|
|
|
#ifndef _PLAYER_H
|
|
|
|
#define _PLAYER_H
|
|
|
|
|
|
|
|
#include "libs.h"
|
|
|
|
#include "Ship.h"
|
|
|
|
|
|
|
|
class Player: public Ship {
|
|
|
|
public:
|
2008-06-26 08:50:27 -07:00
|
|
|
Player(ShipType::Type shipType);
|
2008-07-07 15:19:53 -07:00
|
|
|
virtual ~Player();
|
2008-07-03 07:30:25 -07:00
|
|
|
void PollControls();
|
2008-06-24 03:17:31 -07:00
|
|
|
virtual void Render(const Frame *camFrame);
|
|
|
|
void DrawHUD(const Frame *cam_frame);
|
2008-09-10 07:15:20 -07:00
|
|
|
virtual void SetDockedWith(SpaceStation *, int port);
|
2008-06-24 03:17:31 -07:00
|
|
|
vector3d GetExternalViewTranslation();
|
2008-08-14 16:59:47 -07:00
|
|
|
void ApplyExternalViewRotation(matrix4x4d &m);
|
2008-08-11 15:47:34 -07:00
|
|
|
void TimeStepUpdate(const float timeStep);
|
2008-06-24 03:17:31 -07:00
|
|
|
private:
|
2008-07-07 15:19:53 -07:00
|
|
|
void DrawTargetSquares();
|
|
|
|
void DrawTargetSquare(const Body* const target);
|
2008-06-26 08:50:27 -07:00
|
|
|
float m_mouseCMov[2];
|
2008-06-24 03:17:31 -07:00
|
|
|
float m_external_view_rotx, m_external_view_roty;
|
|
|
|
float m_external_view_dist;
|
2008-08-11 15:47:34 -07:00
|
|
|
bool polledControlsThisTurn;
|
2008-06-24 03:17:31 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* _PLAYER_H */
|