Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
RadioView Class Reference

#include <RadioView.h>

Inheritance diagram for RadioView:
View SimObserver

List of all members.

Public Member Functions

 RadioView (Window *c)
virtual ~RadioView ()
virtual void Refresh ()
virtual void OnWindowMove ()
virtual void ExecFrame ()
virtual MenuGetRadioMenu (Ship *ship)
virtual bool IsMenuShown ()
virtual void ShowMenu ()
virtual void CloseMenu ()
virtual bool Update (SimObject *obj)
virtual const char * GetObserverName () const
- Public Member Functions inherited from View
 View (Window *c)
virtual ~View ()
int operator== (const View &that) const
virtual void OnShow ()
virtual void OnHide ()
virtual void SetWindow (Window *w)
virtual WindowGetWindow ()
- Public Member Functions inherited from SimObserver
virtual ~SimObserver ()
int operator== (const SimObserver &o) const
virtual void Observe (SimObject *obj)
virtual void Ignore (SimObject *obj)

Static Public Member Functions

static void Message (const char *msg)
static void ClearMessages ()
static void SetColor (Color c)
static void Initialize ()
static void Close ()
static RadioViewGetInstance ()
- Static Public Member Functions inherited from View
static const char * TYPENAME ()
- Static Public Member Functions inherited from SimObserver
static const char * TYPENAME ()

Protected Types

enum  { MAX_MSG = 6 }

Protected Member Functions

void SendRadioMessage (Ship *ship, MenuItem *item)

Protected Attributes

int width
int height
double xcenter
double ycenter
Fontfont
Simsim
Shipship
Elementdst_elem
Text msg_text [MAX_MSG]
double msg_time [MAX_MSG]
- Protected Attributes inherited from View
Windowwindow
- Protected Attributes inherited from SimObserver
List< SimObjectobserve_list

Static Protected Attributes

static RadioViewradio_view = 0
static ThreadSync sync

Detailed Description

Definition at line 37 of file RadioView.h.


Member Enumeration Documentation

anonymous enum
protected
Enumerator:
MAX_MSG 

Definition at line 78 of file RadioView.h.


Constructor & Destructor Documentation

RadioView::RadioView ( Window c)

Definition at line 168 of file RadioView.cpp.

RadioView::~RadioView ( )
virtual

Definition at line 188 of file RadioView.cpp.


Member Function Documentation

void RadioView::ClearMessages ( )
static

Definition at line 632 of file RadioView.cpp.

void RadioView::Close ( )
static

Definition at line 129 of file RadioView.cpp.

void RadioView::CloseMenu ( )
virtual

Definition at line 523 of file RadioView.cpp.

void RadioView::ExecFrame ( )
virtual

Definition at line 420 of file RadioView.cpp.

static RadioView* RadioView::GetInstance ( )
inlinestatic

Definition at line 65 of file RadioView.h.

const char * RadioView::GetObserverName ( ) const
virtual

Reimplemented from SimObserver.

Definition at line 216 of file RadioView.cpp.

Menu * RadioView::GetRadioMenu ( Ship ship)
virtual

Definition at line 534 of file RadioView.cpp.

void RadioView::Initialize ( )
static

Definition at line 66 of file RadioView.cpp.

bool RadioView::IsMenuShown ( )
virtual

Definition at line 499 of file RadioView.cpp.

void RadioView::Message ( const char *  msg)
static

Definition at line 602 of file RadioView.cpp.

void RadioView::OnWindowMove ( )
virtual

Reimplemented from View.

Definition at line 194 of file RadioView.cpp.

void RadioView::Refresh ( )
virtual

Reimplemented from View.

Definition at line 224 of file RadioView.cpp.

void RadioView::SendRadioMessage ( Ship ship,
MenuItem item 
)
protected

Definition at line 356 of file RadioView.cpp.

void RadioView::SetColor ( Color  c)
static

Definition at line 482 of file RadioView.cpp.

void RadioView::ShowMenu ( )
virtual

Definition at line 505 of file RadioView.cpp.

bool RadioView::Update ( SimObject obj)
virtual

Reimplemented from SimObserver.

Definition at line 205 of file RadioView.cpp.


Member Data Documentation

Element* RadioView::dst_elem
protected

Definition at line 76 of file RadioView.h.

Font* RadioView::font
protected

Definition at line 73 of file RadioView.h.

int RadioView::height
protected

Definition at line 70 of file RadioView.h.

Text RadioView::msg_text[MAX_MSG]
protected

Definition at line 79 of file RadioView.h.

double RadioView::msg_time[MAX_MSG]
protected

Definition at line 80 of file RadioView.h.

RadioView * RadioView::radio_view = 0
staticprotected

Definition at line 82 of file RadioView.h.

Ship* RadioView::ship
protected

Definition at line 75 of file RadioView.h.

Sim* RadioView::sim
protected

Definition at line 74 of file RadioView.h.

ThreadSync RadioView::sync
staticprotected

Definition at line 83 of file RadioView.h.

int RadioView::width
protected

Definition at line 70 of file RadioView.h.

double RadioView::xcenter
protected

Definition at line 71 of file RadioView.h.

double RadioView::ycenter
protected

Definition at line 71 of file RadioView.h.


The documentation for this class was generated from the following files: