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/_radio_message_8h_source.html | 272 +++++++++++++++++++++++++ 1 file changed, 272 insertions(+) create mode 100644 Doc/doxygen/html/_radio_message_8h_source.html (limited to 'Doc/doxygen/html/_radio_message_8h_source.html') diff --git a/Doc/doxygen/html/_radio_message_8h_source.html b/Doc/doxygen/html/_radio_message_8h_source.html new file mode 100644 index 0000000..66bdd9c --- /dev/null +++ b/Doc/doxygen/html/_radio_message_8h_source.html @@ -0,0 +1,272 @@ + + + + + +Starshatter_Open: D:/SRC/StarshatterSVN/Stars45/RadioMessage.h Source File + + + + + + + + + + + + + +
+
+ + + + + + +
+
Starshatter_Open +
+
Open source Starshatter engine
+
+
+ + + + + +
+
+ +
+
+
+ +
+ + + + +
+ +
+ +
+
+
RadioMessage.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: RadioMessage.h
+
7  AUTHOR: John DiCamillo
+
8 
+
9 
+
10  OVERVIEW
+
11  ========
+
12  RadioMessage (radio comms) class declaration
+
13 */
+
14 
+
15 #ifndef RadioMessage_h
+
16 #define RadioMessage_h
+
17 
+
18 #include "Types.h"
+
19 #include "Geometry.h"
+
20 #include "SimObject.h"
+
21 #include "Instruction.h"
+
22 #include "List.h"
+
23 #include "Text.h"
+
24 
+
25 // +--------------------------------------------------------------------+
+
26 
+
27 class Element;
+
28 class Ship;
+
29 class SimObject;
+
30 
+
31 // +--------------------------------------------------------------------+
+
32 
+ +
34 {
+
35 public:
+
36  enum ACTION
+
37  {
+
38  NONE = 0,
+
39 
+ + + + +
44 
+
45  // protocol:
+
46  ACK,
+ +
48 
+
49  // target mgt:
+ + + + +
54 
+
55  // combat mgt:
+ + + +
59  FORM_UP, // alias for wep_hold
+ +
61 
+
62  // sensor mgt:
+ + + + +
67 
+
68  // formation mgt:
+ + + + +
73 
+
74  // mission mgt:
+ + + +
78 
+
79  // misc announcements:
+ + + + + + + + +
88  SPLASH_5, // target destroyed
+
89  SPLASH_6, // enemy destroyed
+
90  SPLASH_7, // confirmed kill
+ + + + +
95 
+
96  // friendly fire:
+ + + +
100 
+
101  // support:
+ + + +
105 
+
106  // traffic control:
+ + + + + +
112 
+ +
114  };
+
115 
+
116  RadioMessage(Ship* dst, const Ship* sender, int action);
+
117  RadioMessage(Element* dst, const Ship* sender, int action);
+
118  RadioMessage(const RadioMessage& rm);
+
119  virtual ~RadioMessage();
+
120 
+
121  // accessors:
+
122  static const char* ActionName(int a);
+
123 
+
124  const Ship* Sender() const { return sender; }
+
125  Ship* DestinationShip() const { return dst_ship; }
+
126  Element* DestinationElem() const { return dst_elem; }
+
127  int Action() const { return action; }
+ +
129  const Point& Location() const { return location; }
+
130  const Text& Info() const { return info; }
+
131  int Channel() const { return channel; }
+
132 
+
133  // mutators:
+
134  void SetDestinationShip(Ship* s) { dst_ship = s; }
+ +
136  void AddTarget(SimObject* s);
+
137  void SetLocation(const Point& l) { location = l; }
+
138  void SetInfo(Text msg) { info = msg; }
+
139  void SetChannel(int c) { channel = c; }
+
140 
+
141 protected:
+
142  const Ship* sender;
+ + +
145  int action;
+ + + +
149  int channel;
+
150 };
+
151 
+
152 // +--------------------------------------------------------------------+
+
153 
+
154 #endif RadioMessage_h
+
155 
+
+
+ + + + -- cgit v1.1