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/_nav_a_i_8h_source.html | 191 +++++++++++++++++++++++++++++++ 1 file changed, 191 insertions(+) create mode 100644 Doc/doxygen/html/_nav_a_i_8h_source.html (limited to 'Doc/doxygen/html/_nav_a_i_8h_source.html') diff --git a/Doc/doxygen/html/_nav_a_i_8h_source.html b/Doc/doxygen/html/_nav_a_i_8h_source.html new file mode 100644 index 0000000..d493bf4 --- /dev/null +++ b/Doc/doxygen/html/_nav_a_i_8h_source.html @@ -0,0 +1,191 @@ + + + + + +Starshatter_Open: D:/SRC/StarshatterSVN/Stars45/NavAI.h Source File + + + + + + + + + + + + + +
+
+ + + + + + +
+
Starshatter_Open +
+
Open source Starshatter engine
+
+
+ + + + + +
+
+ +
+
+
+ +
+ + + + +
+ +
+ +
+
+
NavAI.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: NavAI.h
+
7  AUTHOR: John DiCamillo
+
8 
+
9 
+
10  OVERVIEW
+
11  ========
+
12  Automatic Navigator
+
13 */
+
14 
+
15 #ifndef NavAI_h
+
16 #define NavAI_h
+
17 
+
18 #include "Types.h"
+
19 #include "Geometry.h"
+
20 #include "System.h"
+
21 #include "ShipAI.h"
+
22 #include "Text.h"
+
23 
+
24 // +--------------------------------------------------------------------+
+
25 
+
26 class Farcaster;
+
27 
+
28 // +--------------------------------------------------------------------+
+
29 
+
30 class NavAI : public ShipAI
+
31 {
+
32 public:
+
33  NavAI(Ship* s);
+
34  virtual ~NavAI();
+
35 
+
36  enum { DIR_TYPE = 2000 };
+
37  virtual int Type() const { return DIR_TYPE; }
+
38 
+
39  virtual void ExecFrame(double seconds);
+
40  virtual int Subframe() const { return true; }
+
41  void Disengage();
+
42  bool Complete() const { return complete; }
+
43 
+
44 protected:
+
45  // behaviors:
+
46  virtual Steer SeekTarget();
+
47 
+
48  // steering functions:
+
49  virtual Point Transform(const Point& pt);
+
50  virtual Steer Seek(const Point& point);
+
51  virtual Steer Flee(const Point& point);
+
52  virtual Steer Avoid(const Point& point, float radius);
+
53  virtual Steer AvoidTerrain();
+
54 
+
55  // accumulate behaviors:
+
56  virtual void Navigator();
+
57  virtual void FindObjective();
+
58 
+
59  virtual void HelmControl();
+
60  virtual void ThrottleControl();
+
61 
+
62  bool complete;
+ + + +
66  double brakes;
+ +
68 };
+
69 
+
70 // +--------------------------------------------------------------------+
+
71 
+
72 
+
73 #endif NavAI_h
+
74 
+
+
+ + + + -- cgit v1.1