summaryrefslogtreecommitdiffhomepage
path: root/Stars45/RadioView.h
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/RadioView.h')
-rw-r--r--Stars45/RadioView.h78
1 files changed, 39 insertions, 39 deletions
diff --git a/Stars45/RadioView.h b/Stars45/RadioView.h
index 8bcdf03..535c344 100644
--- a/Stars45/RadioView.h
+++ b/Stars45/RadioView.h
@@ -1,15 +1,15 @@
/* Project Starshatter 4.5
- Destroyer Studios LLC
- Copyright © 1997-2004. All Rights Reserved.
+ Destroyer Studios LLC
+ Copyright © 1997-2004. All Rights Reserved.
- SUBSYSTEM: Stars.exe
- FILE: RadioView.h
- AUTHOR: John DiCamillo
+ SUBSYSTEM: Stars.exe
+ FILE: RadioView.h
+ AUTHOR: John DiCamillo
- OVERVIEW
- ========
- View class for Radio Communications HUD Overlay
+ OVERVIEW
+ ========
+ View class for Radio Communications HUD Overlay
*/
#ifndef RadioView_h
@@ -35,52 +35,52 @@ class MenuItem;
// +--------------------------------------------------------------------+
class RadioView : public View,
- public SimObserver
+public SimObserver
{
public:
- RadioView(Window* c);
- virtual ~RadioView();
+ RadioView(Window* c);
+ virtual ~RadioView();
- // Operations:
- virtual void Refresh();
- virtual void OnWindowMove();
- virtual void ExecFrame();
+ // Operations:
+ virtual void Refresh();
+ virtual void OnWindowMove();
+ virtual void ExecFrame();
- virtual Menu* GetRadioMenu(Ship* ship);
- virtual bool IsMenuShown();
- virtual void ShowMenu();
- virtual void CloseMenu();
+ virtual Menu* GetRadioMenu(Ship* ship);
+ virtual bool IsMenuShown();
+ virtual void ShowMenu();
+ virtual void CloseMenu();
- static void Message(const char* msg);
- static void ClearMessages();
+ static void Message(const char* msg);
+ static void ClearMessages();
- virtual bool Update(SimObject* obj);
- virtual const char* GetObserverName() const;
+ virtual bool Update(SimObject* obj);
+ virtual const char* GetObserverName() const;
- static void SetColor(Color c);
+ static void SetColor(Color c);
- static void Initialize();
- static void Close();
+ static void Initialize();
+ static void Close();
- static RadioView* GetInstance() { return radio_view; }
+ static RadioView* GetInstance() { return radio_view; }
protected:
- void SendRadioMessage(Ship* ship, MenuItem* item);
+ void SendRadioMessage(Ship* ship, MenuItem* item);
- int width, height;
- double xcenter, ycenter;
+ int width, height;
+ double xcenter, ycenter;
- Font* font;
- Sim* sim;
- Ship* ship;
- Element* dst_elem;
+ Font* font;
+ Sim* sim;
+ Ship* ship;
+ Element* dst_elem;
- enum { MAX_MSG=6 };
- Text msg_text[MAX_MSG];
- double msg_time[MAX_MSG];
+ enum { MAX_MSG=6 };
+ Text msg_text[MAX_MSG];
+ double msg_time[MAX_MSG];
- static RadioView* radio_view;
- static ThreadSync sync;
+ static RadioView* radio_view;
+ static ThreadSync sync;
};
#endif RadioView_h