From 8898ad9b25fca6afe2374d293a981db02a83d7e9 Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Thu, 31 May 2012 14:46:27 +0000 Subject: Committing the documentation to svn to have it accessible online --- Doc/doxygen/html/_quantum_drive_8h_source.html | 190 +++++++++++++++++++++++++ 1 file changed, 190 insertions(+) create mode 100644 Doc/doxygen/html/_quantum_drive_8h_source.html (limited to 'Doc/doxygen/html/_quantum_drive_8h_source.html') diff --git a/Doc/doxygen/html/_quantum_drive_8h_source.html b/Doc/doxygen/html/_quantum_drive_8h_source.html new file mode 100644 index 0000000..d7632f2 --- /dev/null +++ b/Doc/doxygen/html/_quantum_drive_8h_source.html @@ -0,0 +1,190 @@ + + + + + +Starshatter_Open: D:/SRC/StarshatterSVN/Stars45/QuantumDrive.h Source File + + + + + + + + + + + + + +
+
+ + + + + + +
+
Starshatter_Open +
+
Open source Starshatter engine
+
+
+ + + + + +
+
+ +
+
+
+ +
+ + + + +
+ +
+ +
+
+
QuantumDrive.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: QuantumDrive.h
+
7  AUTHOR: John DiCamillo
+
8 
+
9 
+
10  OVERVIEW
+
11  ========
+
12  Quantum (JUMP) Drive (system) class
+
13 */
+
14 
+
15 #ifndef QuantumDrive_h
+
16 #define QuantumDrive_h
+
17 
+
18 #include "Types.h"
+
19 #include "System.h"
+
20 #include "Geometry.h"
+
21 
+
22 // +--------------------------------------------------------------------+
+
23 
+
24 class Ship;
+
25 class SimRegion;
+
26 
+
27 // +--------------------------------------------------------------------+
+
28 
+
29 class QuantumDrive : public System
+
30 {
+
31 public:
+
32  enum SUBTYPE { QUANTUM, HYPER };
+
33 
+
34  QuantumDrive(SUBTYPE s, double capacity, double sink_rate);
+
35  QuantumDrive(const QuantumDrive& rhs);
+
36  virtual ~QuantumDrive();
+
37 
+ + +
40  };
+
41 
+
42  void SetDestination(SimRegion* rgn, const Point& loc);
+
43  bool Engage(bool immediate=false);
+
44  int ActiveState() const { return active_state; }
+
45  double WarpFactor() const { return warp_fov; }
+
46  double JumpTime() const { return jump_time; }
+
47  virtual void PowerOff();
+
48 
+
49  virtual void ExecFrame(double seconds);
+
50 
+
51  void SetShip(Ship* s) { ship = s; }
+
52  Ship* GetShip() const { return ship; }
+
53 
+
54  double GetCountdown() const { return countdown; }
+
55  void SetCountdown(double d) { countdown = d; }
+
56 
+
57 protected:
+
58  void Jump();
+
59  void AbortJump();
+
60 
+ +
62 
+ +
64  double warp_fov;
+
65  double jump_time;
+
66  double countdown;
+
67 
+ + +
70 };
+
71 
+
72 #endif // QuantumDrive_h
+
73 
+
+
+ + + + -- cgit v1.1