Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ShipKiller.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: ShipKiller.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  ShipKiller (i.e. death spiral) class
13 */
14 
15 #ifndef ShipKiller_h
16 #define ShipKiller_h
17 
18 #include "Types.h"
19 #include "Geometry.h"
20 #include "Text.h"
21 
22 // +--------------------------------------------------------------------+
23 
24 class Ship;
25 
26 // +--------------------------------------------------------------------+
27 
29 {
30 public:
31  const float DEATH_CAM_LINGER;
32 
33  // CONSTRUCTORS:
35  virtual ~ShipKiller();
36 
37  virtual void BeginDeathSpiral();
38  virtual void ExecFrame(double seconds);
39 
40  // GENERAL ACCESSORS:
41  virtual float TransitionTime() const { return time; }
42  virtual Point TransitionLoc() const { return loc; }
43 
44 protected:
46 
47  float time;
49 
50  float exp_time;
51  int exp_index;
52 };
53 
54 #endif ShipKiller_h
55