From e33e19d0587146859d48a134ec9fd94e7b7ba5cd Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Thu, 8 Dec 2011 14:53:40 +0000 Subject: Initial upload --- Stars45/RadioVox.h | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Stars45/RadioVox.h (limited to 'Stars45/RadioVox.h') 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 sounds; + int index; + int channel; +}; + +#endif RadioVox_h + -- cgit v1.1