Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
RadioMessage Class Reference

#include <RadioMessage.h>

List of all members.

Public Types

enum  ACTION {
  NONE = 0, DOCK_WITH = Instruction::DOCK, RTB = Instruction::RTB, QUANTUM_TO = Instruction::NUM_ACTIONS,
  FARCAST_TO, ACK, NACK, ATTACK,
  ESCORT, BRACKET, IDENTIFY, COVER_ME,
  WEP_FREE, WEP_HOLD, FORM_UP, SAY_POSITION,
  LAUNCH_PROBE, GO_EMCON1, GO_EMCON2, GO_EMCON3,
  GO_DIAMOND, GO_SPREAD, GO_BOX, GO_TRAIL,
  MOVE_PATROL, SKIP_NAVPOINT, RESUME_MISSION, CALL_ENGAGING,
  FOX_1, FOX_2, FOX_3, SPLASH_1,
  SPLASH_2, SPLASH_3, SPLASH_4, SPLASH_5,
  SPLASH_6, SPLASH_7, DISTRESS, BREAK_ORBIT,
  MAKE_ORBIT, QUANTUM_JUMP, WARN_ACCIDENT, WARN_TARGETED,
  DECLARE_ROGUE, PICTURE, REQUEST_PICTURE, REQUEST_SUPPORT,
  CALL_INBOUND, CALL_APPROACH, CALL_CLEARANCE, CALL_FINALS,
  CALL_WAVE_OFF, NUM_ACTIONS
}

Public Member Functions

 RadioMessage (Ship *dst, const Ship *sender, int action)
 RadioMessage (Element *dst, const Ship *sender, int action)
 RadioMessage (const RadioMessage &rm)
virtual ~RadioMessage ()
const ShipSender () const
ShipDestinationShip () const
ElementDestinationElem () const
int Action () const
List< SimObject > & TargetList ()
const PointLocation () const
const TextInfo () const
int Channel () const
void SetDestinationShip (Ship *s)
void SetDestinationElem (Element *e)
void AddTarget (SimObject *s)
void SetLocation (const Point &l)
void SetInfo (Text msg)
void SetChannel (int c)

Static Public Member Functions

static const char * ActionName (int a)

Protected Attributes

const Shipsender
Shipdst_ship
Elementdst_elem
int action
List< SimObjecttarget_list
Point location
Text info
int channel

Detailed Description

Definition at line 33 of file RadioMessage.h.


Member Enumeration Documentation

Enumerator:
NONE 
DOCK_WITH 
RTB 
QUANTUM_TO 
FARCAST_TO 
ACK 
NACK 
ATTACK 
ESCORT 
BRACKET 
IDENTIFY 
COVER_ME 
WEP_FREE 
WEP_HOLD 
FORM_UP 
SAY_POSITION 
LAUNCH_PROBE 
GO_EMCON1 
GO_EMCON2 
GO_EMCON3 
GO_DIAMOND 
GO_SPREAD 
GO_BOX 
GO_TRAIL 
MOVE_PATROL 
SKIP_NAVPOINT 
RESUME_MISSION 
CALL_ENGAGING 
FOX_1 
FOX_2 
FOX_3 
SPLASH_1 
SPLASH_2 
SPLASH_3 
SPLASH_4 
SPLASH_5 
SPLASH_6 
SPLASH_7 
DISTRESS 
BREAK_ORBIT 
MAKE_ORBIT 
QUANTUM_JUMP 
WARN_ACCIDENT 
WARN_TARGETED 
DECLARE_ROGUE 
PICTURE 
REQUEST_PICTURE 
REQUEST_SUPPORT 
CALL_INBOUND 
CALL_APPROACH 
CALL_CLEARANCE 
CALL_FINALS 
CALL_WAVE_OFF 
NUM_ACTIONS 

Definition at line 36 of file RadioMessage.h.


Constructor & Destructor Documentation

RadioMessage::RadioMessage ( Ship dst,
const Ship sender,
int  action 
)

Definition at line 22 of file RadioMessage.cpp.

RadioMessage::RadioMessage ( Element dst,
const Ship sender,
int  action 
)

Definition at line 29 of file RadioMessage.cpp.

RadioMessage::RadioMessage ( const RadioMessage rm)

Definition at line 36 of file RadioMessage.cpp.

RadioMessage::~RadioMessage ( )
virtual

Definition at line 49 of file RadioMessage.cpp.


Member Function Documentation

int RadioMessage::Action ( ) const
inline

Definition at line 127 of file RadioMessage.h.

const char * RadioMessage::ActionName ( int  a)
static

Definition at line 55 of file RadioMessage.cpp.

void RadioMessage::AddTarget ( SimObject s)

Definition at line 157 of file RadioMessage.cpp.

int RadioMessage::Channel ( ) const
inline

Definition at line 131 of file RadioMessage.h.

Element* RadioMessage::DestinationElem ( ) const
inline

Definition at line 126 of file RadioMessage.h.

Ship* RadioMessage::DestinationShip ( ) const
inline

Definition at line 125 of file RadioMessage.h.

const Text& RadioMessage::Info ( ) const
inline

Definition at line 130 of file RadioMessage.h.

const Point& RadioMessage::Location ( ) const
inline

Definition at line 129 of file RadioMessage.h.

const Ship* RadioMessage::Sender ( ) const
inline

Definition at line 124 of file RadioMessage.h.

void RadioMessage::SetChannel ( int  c)
inline

Definition at line 139 of file RadioMessage.h.

void RadioMessage::SetDestinationElem ( Element e)
inline

Definition at line 135 of file RadioMessage.h.

void RadioMessage::SetDestinationShip ( Ship s)
inline

Definition at line 134 of file RadioMessage.h.

void RadioMessage::SetInfo ( Text  msg)
inline

Definition at line 138 of file RadioMessage.h.

void RadioMessage::SetLocation ( const Point l)
inline

Definition at line 137 of file RadioMessage.h.

List<SimObject>& RadioMessage::TargetList ( )
inline

Definition at line 128 of file RadioMessage.h.


Member Data Documentation

int RadioMessage::action
protected

Definition at line 145 of file RadioMessage.h.

int RadioMessage::channel
protected

Definition at line 149 of file RadioMessage.h.

Element* RadioMessage::dst_elem
protected

Definition at line 144 of file RadioMessage.h.

Ship* RadioMessage::dst_ship
protected

Definition at line 143 of file RadioMessage.h.

Text RadioMessage::info
protected

Definition at line 148 of file RadioMessage.h.

Point RadioMessage::location
protected

Definition at line 147 of file RadioMessage.h.

const Ship* RadioMessage::sender
protected

Definition at line 142 of file RadioMessage.h.

List<SimObject> RadioMessage::target_list
protected

Definition at line 146 of file RadioMessage.h.


The documentation for this class was generated from the following files: