Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
RadioVox.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: RadioVox.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  View class for Radio Communications HUD Overlay
13 */
14 
15 #ifndef RadioVox_h
16 #define RadioVox_h
17 
18 #include "Types.h"
19 #include "List.h"
20 #include "Text.h"
21 
22 // +--------------------------------------------------------------------+
23 
24 class Element;
25 class Ship;
26 class RadioMessage;
27 class Sound;
28 
29 // +--------------------------------------------------------------------+
30 
31 class RadioVox
32 {
33  friend class RadioVoxController;
34 
35 public:
36  static const char* TYPENAME() { return "RadioVox"; }
37 
38  RadioVox(int channel, const char* path, const char* message=0);
39  virtual ~RadioVox();
40 
41  // Operations:
42  virtual bool AddPhrase(const char* key);
43  virtual bool Start();
44 
45  static void Initialize();
46  static void Close();
47 
48 protected:
49  virtual bool Update();
50 
54  int index;
55  int channel;
56 };
57 
58 #endif RadioVox_h
59