Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ShipCtrl.h
Go to the documentation of this file.
1 /* Project Starshatter 4.5
2  Destroyer Studios LLC
3  Copyright © 1997-2004. All Rights Reserved.
4 
5  SUBSYSTEM: Stars.exe
6  FILE: ShipCtrl.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  Starship (or space/ground station) class
13 */
14 
15 #ifndef ShipCtrl_h
16 #define ShipCtrl_h
17 
18 #include "Types.h"
19 #include "SimObject.h"
20 #include "MotionController.h"
21 #include "Director.h"
22 #include "Geometry.h"
23 
24 // +--------------------------------------------------------------------+
25 
26 class Ship;
27 class ShipDesign;
28 class KeyMap;
29 
30 // +--------------------------------------------------------------------+
31 
32 class ShipCtrl : public Director
33 {
34 public:
35  enum TYPE { DIR_TYPE = 1 };
36 
38 
39  virtual void ExecFrame(double seconds);
40  virtual int Subframe() const { return true; }
41  virtual void Launch();
42 
43  static int KeyDown(int action);
44  static int Toggled(int action);
45 
46  virtual int Type() const { return DIR_TYPE; }
47 
48 protected:
51 
56 };
57 
58 #endif ShipCtrl_h
59