summaryrefslogtreecommitdiffhomepage
path: root/Stars45/RadioVox.h
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/RadioVox.h')
-rw-r--r--Stars45/RadioVox.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/Stars45/RadioVox.h b/Stars45/RadioVox.h
new file mode 100644
index 0000000..b68430a
--- /dev/null
+++ b/Stars45/RadioVox.h
@@ -0,0 +1,59 @@
+/* Project Starshatter 4.5
+ Destroyer Studios LLC
+ Copyright © 1997-2004. All Rights Reserved.
+
+ SUBSYSTEM: Stars.exe
+ FILE: RadioVox.h
+ AUTHOR: John DiCamillo
+
+
+ OVERVIEW
+ ========
+ View class for Radio Communications HUD Overlay
+*/
+
+#ifndef RadioVox_h
+#define RadioVox_h
+
+#include "Types.h"
+#include "List.h"
+#include "Text.h"
+
+// +--------------------------------------------------------------------+
+
+class Element;
+class Ship;
+class RadioMessage;
+class Sound;
+
+// +--------------------------------------------------------------------+
+
+class RadioVox
+{
+ friend class RadioVoxController;
+
+public:
+ static const char* TYPENAME() { return "RadioVox"; }
+
+ RadioVox(int channel, const char* path, const char* message=0);
+ virtual ~RadioVox();
+
+ // Operations:
+ virtual bool AddPhrase(const char* key);
+ virtual bool Start();
+
+ static void Initialize();
+ static void Close();
+
+protected:
+ virtual bool Update();
+
+ Text path;
+ Text message;
+ List<Sound> sounds;
+ int index;
+ int channel;
+};
+
+#endif RadioVox_h
+