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

#include <WepView.h>

Inheritance diagram for WepView:
View SimObserver

List of all members.

Public Member Functions

 WepView (Window *c)
virtual ~WepView ()
virtual void Refresh ()
virtual void OnWindowMove ()
virtual void ExecFrame ()
virtual void SetOverlayMode (int mode)
virtual int GetOverlayMode () const
virtual void CycleOverlayMode ()
virtual void RestoreOverlay ()
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 WepViewGetInstance ()
static void SetColor (Color c)
static bool IsMouseLatched ()
- 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_WEP = 4, MAX_BTN = 16 }

Protected Member Functions

void DrawOverlay ()
void DoMouseFrame ()
bool CheckButton (int index, int x, int y)
void CycleSubTarget (int direction)

Protected Attributes

int mode
int transition
int mouse_down
int width
int height
int aw
int ah
double xcenter
double ycenter
Simsim
Shipship
SimObjecttarget
HUDViewhud
Rect btn_rect [MAX_BTN]
SimRegionactive_region
- Protected Attributes inherited from View
Windowwindow
- Protected Attributes inherited from SimObserver
List< SimObjectobserve_list

Static Protected Attributes

static WepViewwep_view = 0

Detailed Description

Definition at line 36 of file WepView.h.


Member Enumeration Documentation

anonymous enum
protected
Enumerator:
MAX_WEP 
MAX_BTN 

Definition at line 79 of file WepView.h.


Constructor & Destructor Documentation

WepView::WepView ( Window c)

Definition at line 76 of file WepView.cpp.

WepView::~WepView ( )
virtual

Definition at line 107 of file WepView.cpp.


Member Function Documentation

bool WepView::CheckButton ( int  index,
int  x,
int  y 
)
protected

Definition at line 509 of file WepView.cpp.

void WepView::CycleOverlayMode ( )
virtual

Definition at line 283 of file WepView.cpp.

void WepView::CycleSubTarget ( int  direction)
protected

Definition at line 519 of file WepView.cpp.

void WepView::DoMouseFrame ( )
protected

Definition at line 431 of file WepView.cpp.

void WepView::DrawOverlay ( )
protected

Definition at line 327 of file WepView.cpp.

void WepView::ExecFrame ( )
virtual

Definition at line 243 of file WepView.cpp.

static WepView* WepView::GetInstance ( )
inlinestatic

Definition at line 56 of file WepView.h.

const char * WepView::GetObserverName ( ) const
virtual

Reimplemented from SimObserver.

Definition at line 178 of file WepView.cpp.

virtual int WepView::GetOverlayMode ( ) const
inlinevirtual

Definition at line 48 of file WepView.h.

bool WepView::IsMouseLatched ( )
static

Definition at line 528 of file WepView.cpp.

void WepView::OnWindowMove ( )
virtual

Reimplemented from View.

Definition at line 134 of file WepView.cpp.

void WepView::Refresh ( )
virtual

Reimplemented from View.

Definition at line 186 of file WepView.cpp.

void WepView::RestoreOverlay ( )
virtual

Definition at line 289 of file WepView.cpp.

void WepView::SetColor ( Color  c)
static

Definition at line 303 of file WepView.cpp.

void WepView::SetOverlayMode ( int  mode)
virtual

Definition at line 270 of file WepView.cpp.

bool WepView::Update ( SimObject obj)
virtual

Reimplemented from SimObserver.

Definition at line 164 of file WepView.cpp.


Member Data Documentation

SimRegion* WepView::active_region
protected

Definition at line 82 of file WepView.h.

int WepView::ah
protected

Definition at line 71 of file WepView.h.

int WepView::aw
protected

Definition at line 71 of file WepView.h.

Rect WepView::btn_rect[MAX_BTN]
protected

Definition at line 80 of file WepView.h.

int WepView::height
protected

Definition at line 71 of file WepView.h.

HUDView* WepView::hud
protected

Definition at line 77 of file WepView.h.

int WepView::mode
protected

Definition at line 68 of file WepView.h.

int WepView::mouse_down
protected

Definition at line 70 of file WepView.h.

Ship* WepView::ship
protected

Definition at line 75 of file WepView.h.

Sim* WepView::sim
protected

Definition at line 74 of file WepView.h.

SimObject* WepView::target
protected

Definition at line 76 of file WepView.h.

int WepView::transition
protected

Definition at line 69 of file WepView.h.

WepView * WepView::wep_view = 0
staticprotected

Definition at line 84 of file WepView.h.

int WepView::width
protected

Definition at line 71 of file WepView.h.

double WepView::xcenter
protected

Definition at line 72 of file WepView.h.

double WepView::ycenter
protected

Definition at line 72 of file WepView.h.


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