Starshatter_Open
Open source Starshatter engine
Main Page
Classes
Files
File List
File Members
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
37
ShipCtrl
(
Ship
* s,
MotionController
* m);
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
:
49
Ship
*
ship
;
50
MotionController
*
controller
;
51
52
bool
throttle_active
;
53
bool
launch_latch
;
54
bool
pickle_latch
;
55
bool
target_latch
;
56
};
57
58
#endif ShipCtrl_h
59
Stars45
ShipCtrl.h
Generated on Tue Jun 5 2012 20:47:10 for Starshatter_Open by
1.8.1