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

#include <TacticalView.h>

Inheritance diagram for TacticalView:
View SimObserver

List of all members.

Public Member Functions

 TacticalView (Window *c, GameScreen *parent)
virtual ~TacticalView ()
virtual void Refresh ()
virtual void OnWindowMove ()
virtual void ExecFrame ()
virtual void UseProjector (Projector *p)
virtual void DoMouseFrame ()
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 SetColor (Color c)
static void Initialize ()
static void Close ()
static TacticalViewGetInstance ()
- Static Public Member Functions inherited from View
static const char * TYPENAME ()
- Static Public Member Functions inherited from SimObserver
static const char * TYPENAME ()

Protected Member Functions

virtual bool SelectAt (int x, int y)
virtual bool SelectRect (const Rect &r)
virtual ShipWillSelectAt (int x, int y)
virtual void SetHelm (bool approach)
virtual void DrawMouseRect ()
virtual void DrawSelection (Ship *seln)
virtual void DrawSelectionInfo (Ship *seln)
virtual void DrawSelectionList (ListIter< Ship > seln)
virtual void BuildMenu ()
virtual void DrawMenu ()
virtual void ProcessMenuItem (int action)
virtual void DrawMove ()
virtual void SendMove ()
virtual bool GetMouseLoc3D ()
virtual void DrawAction ()
virtual void SendAction ()

Protected Attributes

GameScreengamescreen
CameraViewcamview
Projectorprojector
int width
int height
double xcenter
double ycenter
int shift_down
int mouse_down
int right_down
int show_move
int show_action
Point move_loc
double base_alt
double move_alt
POINT mouse_action
POINT mouse_start
Rect mouse_rect
Fontfont
Simsim
Shipship
Shipmsg_ship
Text current_sector
Menuactive_menu
MenuViewmenu_view
- Protected Attributes inherited from View
Windowwindow
- Protected Attributes inherited from SimObserver
List< SimObjectobserve_list

Static Protected Attributes

static TacticalViewtac_view = 0

Detailed Description

Definition at line 39 of file TacticalView.h.


Constructor & Destructor Documentation

TacticalView::TacticalView ( Window c,
GameScreen parent 
)

Definition at line 61 of file TacticalView.cpp.

TacticalView::~TacticalView ( )
virtual

Definition at line 86 of file TacticalView.cpp.


Member Function Documentation

void TacticalView::BuildMenu ( )
protectedvirtual

Definition at line 1117 of file TacticalView.cpp.

void TacticalView::Close ( )
static

Definition at line 977 of file TacticalView.cpp.

void TacticalView::DoMouseFrame ( )
virtual

Definition at line 540 of file TacticalView.cpp.

void TacticalView::DrawAction ( )
protectedvirtual

Definition at line 1377 of file TacticalView.cpp.

void TacticalView::DrawMenu ( )
protectedvirtual

Definition at line 1196 of file TacticalView.cpp.

void TacticalView::DrawMouseRect ( )
protectedvirtual

Definition at line 247 of file TacticalView.cpp.

void TacticalView::DrawMove ( )
protectedvirtual

Definition at line 1301 of file TacticalView.cpp.

void TacticalView::DrawSelection ( Ship seln)
protectedvirtual

Definition at line 262 of file TacticalView.cpp.

void TacticalView::DrawSelectionInfo ( Ship seln)
protectedvirtual

Definition at line 318 of file TacticalView.cpp.

void TacticalView::DrawSelectionList ( ListIter< Ship seln)
protectedvirtual

Definition at line 505 of file TacticalView.cpp.

void TacticalView::ExecFrame ( )
virtual

Definition at line 216 of file TacticalView.cpp.

static TacticalView* TacticalView::GetInstance ( )
inlinestatic

Definition at line 62 of file TacticalView.h.

bool TacticalView::GetMouseLoc3D ( )
protectedvirtual

Definition at line 1221 of file TacticalView.cpp.

const char * TacticalView::GetObserverName ( ) const
virtual

Reimplemented from SimObserver.

Definition at line 121 of file TacticalView.cpp.

void TacticalView::Initialize ( )
static

Definition at line 916 of file TacticalView.cpp.

void TacticalView::OnWindowMove ( )
virtual

Reimplemented from View.

Definition at line 93 of file TacticalView.cpp.

void TacticalView::ProcessMenuItem ( int  action)
protectedvirtual

Definition at line 994 of file TacticalView.cpp.

void TacticalView::Refresh ( )
virtual

Reimplemented from View.

Definition at line 135 of file TacticalView.cpp.

bool TacticalView::SelectAt ( int  x,
int  y 
)
protectedvirtual

Definition at line 682 of file TacticalView.cpp.

bool TacticalView::SelectRect ( const Rect r)
protectedvirtual

Definition at line 700 of file TacticalView.cpp.

void TacticalView::SendAction ( )
protectedvirtual

Definition at line 1457 of file TacticalView.cpp.

void TacticalView::SendMove ( )
protectedvirtual

Definition at line 1357 of file TacticalView.cpp.

void TacticalView::SetColor ( Color  c)
static

Definition at line 230 of file TacticalView.cpp.

void TacticalView::SetHelm ( bool  approach)
protectedvirtual

Definition at line 829 of file TacticalView.cpp.

bool TacticalView::Update ( SimObject obj)
virtual

Reimplemented from SimObserver.

Definition at line 107 of file TacticalView.cpp.

void TacticalView::UseProjector ( Projector p)
virtual

Definition at line 127 of file TacticalView.cpp.

Ship * TacticalView::WillSelectAt ( int  x,
int  y 
)
protectedvirtual

Definition at line 762 of file TacticalView.cpp.


Member Data Documentation

Menu* TacticalView::active_menu
protected

Definition at line 113 of file TacticalView.h.

double TacticalView::base_alt
protected

Definition at line 100 of file TacticalView.h.

CameraView* TacticalView::camview
protected

Definition at line 87 of file TacticalView.h.

Text TacticalView::current_sector
protected

Definition at line 111 of file TacticalView.h.

Font* TacticalView::font
protected

Definition at line 107 of file TacticalView.h.

GameScreen* TacticalView::gamescreen
protected

Definition at line 86 of file TacticalView.h.

int TacticalView::height
protected

Definition at line 90 of file TacticalView.h.

MenuView* TacticalView::menu_view
protected

Definition at line 114 of file TacticalView.h.

POINT TacticalView::mouse_action
protected

Definition at line 103 of file TacticalView.h.

int TacticalView::mouse_down
protected

Definition at line 94 of file TacticalView.h.

Rect TacticalView::mouse_rect
protected

Definition at line 105 of file TacticalView.h.

POINT TacticalView::mouse_start
protected

Definition at line 104 of file TacticalView.h.

double TacticalView::move_alt
protected

Definition at line 101 of file TacticalView.h.

Point TacticalView::move_loc
protected

Definition at line 99 of file TacticalView.h.

Ship* TacticalView::msg_ship
protected

Definition at line 110 of file TacticalView.h.

Projector* TacticalView::projector
protected

Definition at line 88 of file TacticalView.h.

int TacticalView::right_down
protected

Definition at line 95 of file TacticalView.h.

int TacticalView::shift_down
protected

Definition at line 93 of file TacticalView.h.

Ship* TacticalView::ship
protected

Definition at line 109 of file TacticalView.h.

int TacticalView::show_action
protected

Definition at line 97 of file TacticalView.h.

int TacticalView::show_move
protected

Definition at line 96 of file TacticalView.h.

Sim* TacticalView::sim
protected

Definition at line 108 of file TacticalView.h.

TacticalView * TacticalView::tac_view = 0
staticprotected

Definition at line 116 of file TacticalView.h.

int TacticalView::width
protected

Definition at line 90 of file TacticalView.h.

double TacticalView::xcenter
protected

Definition at line 91 of file TacticalView.h.

double TacticalView::ycenter
protected

Definition at line 91 of file TacticalView.h.


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