diff options
Diffstat (limited to 'Stars45/RadioMessage.h')
-rw-r--r-- | Stars45/RadioMessage.h | 240 |
1 files changed, 120 insertions, 120 deletions
diff --git a/Stars45/RadioMessage.h b/Stars45/RadioMessage.h index 93d010e..24950ad 100644 --- a/Stars45/RadioMessage.h +++ b/Stars45/RadioMessage.h @@ -1,15 +1,15 @@ /* Project Starshatter 4.5
- Destroyer Studios LLC
- Copyright © 1997-2004. All Rights Reserved.
+ Destroyer Studios LLC
+ Copyright © 1997-2004. All Rights Reserved.
- SUBSYSTEM: Stars.exe
- FILE: RadioMessage.h
- AUTHOR: John DiCamillo
+ SUBSYSTEM: Stars.exe
+ FILE: RadioMessage.h
+ AUTHOR: John DiCamillo
- OVERVIEW
- ========
- RadioMessage (radio comms) class declaration
+ OVERVIEW
+ ========
+ RadioMessage (radio comms) class declaration
*/
#ifndef RadioMessage_h
@@ -33,120 +33,120 @@ class SimObject; class RadioMessage
{
public:
- enum ACTION
- {
- NONE = 0,
-
- DOCK_WITH = Instruction::DOCK,
- RTB = Instruction::RTB,
- QUANTUM_TO = Instruction::NUM_ACTIONS,
- FARCAST_TO,
-
- // protocol:
- ACK,
- NACK,
-
- // target mgt:
- ATTACK,
- ESCORT,
- BRACKET,
- IDENTIFY,
-
- // combat mgt:
- COVER_ME,
- WEP_FREE,
- WEP_HOLD,
- FORM_UP, // alias for wep_hold
- SAY_POSITION,
-
- // sensor mgt:
- LAUNCH_PROBE,
- GO_EMCON1,
- GO_EMCON2,
- GO_EMCON3,
-
- // formation mgt:
- GO_DIAMOND,
- GO_SPREAD,
- GO_BOX,
- GO_TRAIL,
-
- // mission mgt:
- MOVE_PATROL,
- SKIP_NAVPOINT,
- RESUME_MISSION,
-
- // misc announcements:
- CALL_ENGAGING,
- FOX_1,
- FOX_2,
- FOX_3,
- SPLASH_1,
- SPLASH_2,
- SPLASH_3,
- SPLASH_4,
- SPLASH_5, // target destroyed
- SPLASH_6, // enemy destroyed
- SPLASH_7, // confirmed kill
- DISTRESS,
- BREAK_ORBIT,
- MAKE_ORBIT,
- QUANTUM_JUMP,
-
- // friendly fire:
- WARN_ACCIDENT,
- WARN_TARGETED,
- DECLARE_ROGUE,
-
- // support:
- PICTURE,
- REQUEST_PICTURE,
- REQUEST_SUPPORT,
-
- // traffic control:
- CALL_INBOUND,
- CALL_APPROACH,
- CALL_CLEARANCE,
- CALL_FINALS,
- CALL_WAVE_OFF,
-
- NUM_ACTIONS
- };
-
- RadioMessage(Ship* dst, const Ship* sender, int action);
- RadioMessage(Element* dst, const Ship* sender, int action);
- RadioMessage(const RadioMessage& rm);
- virtual ~RadioMessage();
-
- // accessors:
- static const char* ActionName(int a);
-
- const Ship* Sender() const { return sender; }
- Ship* DestinationShip() const { return dst_ship; }
- Element* DestinationElem() const { return dst_elem; }
- int Action() const { return action; }
- List<SimObject>& TargetList() { return target_list; }
- const Point& Location() const { return location; }
- const Text& Info() const { return info; }
- int Channel() const { return channel; }
-
- // mutators:
- void SetDestinationShip(Ship* s) { dst_ship = s; }
- void SetDestinationElem(Element* e) { dst_elem = e; }
- void AddTarget(SimObject* s);
- void SetLocation(const Point& l) { location = l; }
- void SetInfo(Text msg) { info = msg; }
- void SetChannel(int c) { channel = c; }
+ enum ACTION
+ {
+ NONE = 0,
+
+ DOCK_WITH = Instruction::DOCK,
+ RTB = Instruction::RTB,
+ QUANTUM_TO = Instruction::NUM_ACTIONS,
+ FARCAST_TO,
+
+ // protocol:
+ ACK,
+ NACK,
+
+ // target mgt:
+ ATTACK,
+ ESCORT,
+ BRACKET,
+ IDENTIFY,
+
+ // combat mgt:
+ COVER_ME,
+ WEP_FREE,
+ WEP_HOLD,
+ FORM_UP, // alias for wep_hold
+ SAY_POSITION,
+
+ // sensor mgt:
+ LAUNCH_PROBE,
+ GO_EMCON1,
+ GO_EMCON2,
+ GO_EMCON3,
+
+ // formation mgt:
+ GO_DIAMOND,
+ GO_SPREAD,
+ GO_BOX,
+ GO_TRAIL,
+
+ // mission mgt:
+ MOVE_PATROL,
+ SKIP_NAVPOINT,
+ RESUME_MISSION,
+
+ // misc announcements:
+ CALL_ENGAGING,
+ FOX_1,
+ FOX_2,
+ FOX_3,
+ SPLASH_1,
+ SPLASH_2,
+ SPLASH_3,
+ SPLASH_4,
+ SPLASH_5, // target destroyed
+ SPLASH_6, // enemy destroyed
+ SPLASH_7, // confirmed kill
+ DISTRESS,
+ BREAK_ORBIT,
+ MAKE_ORBIT,
+ QUANTUM_JUMP,
+
+ // friendly fire:
+ WARN_ACCIDENT,
+ WARN_TARGETED,
+ DECLARE_ROGUE,
+
+ // support:
+ PICTURE,
+ REQUEST_PICTURE,
+ REQUEST_SUPPORT,
+
+ // traffic control:
+ CALL_INBOUND,
+ CALL_APPROACH,
+ CALL_CLEARANCE,
+ CALL_FINALS,
+ CALL_WAVE_OFF,
+
+ NUM_ACTIONS
+ };
+
+ RadioMessage(Ship* dst, const Ship* sender, int action);
+ RadioMessage(Element* dst, const Ship* sender, int action);
+ RadioMessage(const RadioMessage& rm);
+ virtual ~RadioMessage();
+
+ // accessors:
+ static const char* ActionName(int a);
+
+ const Ship* Sender() const { return sender; }
+ Ship* DestinationShip() const { return dst_ship; }
+ Element* DestinationElem() const { return dst_elem; }
+ int Action() const { return action; }
+ List<SimObject>& TargetList() { return target_list; }
+ const Point& Location() const { return location; }
+ const Text& Info() const { return info; }
+ int Channel() const { return channel; }
+
+ // mutators:
+ void SetDestinationShip(Ship* s) { dst_ship = s; }
+ void SetDestinationElem(Element* e) { dst_elem = e; }
+ void AddTarget(SimObject* s);
+ void SetLocation(const Point& l) { location = l; }
+ void SetInfo(Text msg) { info = msg; }
+ void SetChannel(int c) { channel = c; }
protected:
- const Ship* sender;
- Ship* dst_ship;
- Element* dst_elem;
- int action;
- List<SimObject> target_list;
- Point location;
- Text info;
- int channel;
+ const Ship* sender;
+ Ship* dst_ship;
+ Element* dst_elem;
+ int action;
+ List<SimObject> target_list;
+ Point location;
+ Text info;
+ int channel;
};
// +--------------------------------------------------------------------+
|