mElite  1.0
An Elite clone based on TextElite by Jan-Philipp Kappmeier and Melanie Schmidt.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
CameraObject.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include "MovingObject.h"
8 #include "Vector3.h"
9 
11 
19 class CameraObject :
20  virtual public MovingObject {
21  // constructor and initialization
22 public:
23  CameraObject( void );
24  CameraObject( Vector3 position );
25  CameraObject( float x, float y, float z );
26  ~CameraObject(void);
27 
28  // acting as camera: provide projection
29 public:
30  bool isRearView( void );
31  void look( void );
32  void toggleRearView( void );
33 private:
34  bool m_rearView;
35 
36  // additional moving: strafing
37 public:
38  void moveDown( float t );
39  void moveLeft( float t );
40  void moveRight( float t );
41  void moveUp( float t );
42  void setMoveSpeed( float t );
43 private:
44  float m_moveSpeed;
45 };