Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
RadioTraffic.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: RadioTraffic.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  RadioTraffic maintains a history of all messages sent between ships
13  in the simulation. This class also handles displaying relevant
14  traffic to the player.
15 */
16 
17 #ifndef RadioTraffic_h
18 #define RadioTraffic_h
19 
20 #include "Types.h"
21 #include "Geometry.h"
22 #include "SimObject.h"
23 #include "List.h"
24 #include "Text.h"
25 
26 // +--------------------------------------------------------------------+
27 
28 class Element;
29 class RadioMessage;
30 class Ship;
31 class SimObject;
32 
33 // +--------------------------------------------------------------------+
34 
36 {
37 public:
38  RadioTraffic();
39  ~RadioTraffic();
40 
41  // accessors:
42  static void Initialize();
43  static void Close();
44 
45  static RadioTraffic* GetInstance() { return radio_traffic; }
46 
47  static void SendQuickMessage(Ship* ship, int msg);
48  static void Transmit(RadioMessage* msg);
49  static void DiscardMessages();
50  static Text TranslateVox(const char* phrase);
51 
52  void SendMessage(RadioMessage* msg);
53  void DisplayMessage(RadioMessage* msg);
54 
55 
56 protected:
58 
60 };
61 
62 // +--------------------------------------------------------------------+
63 
64 #endif RadioTraffic_h
65