Starshatter_Open
Open source Starshatter engine
|
#include <MapView.h>
Public Member Functions | |
MapView (Window *win) | |
virtual | ~MapView () |
virtual void | Refresh () |
virtual void | OnWindowMove () |
virtual void | OnShow () |
virtual void | OnHide () |
virtual void | DrawTitle () |
virtual void | DrawGalaxy () |
virtual void | DrawSystem () |
virtual void | DrawRegion () |
virtual void | DrawGrid () |
virtual void | DrawOrbital (Orbital &orbital, int index) |
virtual void | DrawShip (Ship &ship, bool current=false, int rep=3) |
virtual void | DrawElem (MissionElement &elem, bool current=false, int rep=3) |
virtual void | DrawNavRoute (OrbitalRegion *rgn, List< Instruction > &route, Color smarker, Ship *ship=0, MissionElement *elem=0) |
virtual void | DrawCombatantSystem (Combatant *c, Orbital *rgn, int x, int y, int r) |
virtual void | DrawCombatGroupSystem (CombatGroup *g, Orbital *rgn, int x1, int x2, int &y, int a) |
virtual void | DrawCombatGroup (CombatGroup *g, int rep=3) |
virtual int | GetViewMode () const |
virtual void | SetViewMode (int mode) |
virtual void | SetSelectionMode (int mode) |
virtual int | GetSelectionMode () const |
virtual void | SetSelection (int index) |
virtual void | SetSelectedShip (Ship *ship) |
virtual void | SetSelectedElem (MissionElement *elem) |
virtual void | SetRegion (OrbitalRegion *rgn) |
virtual void | SetRegionByName (const char *rgn_name) |
virtual void | SelectAt (int x, int y) |
virtual Orbital * | GetSelection () |
virtual Ship * | GetSelectedShip () |
virtual MissionElement * | GetSelectedElem () |
virtual int | GetSelectionIndex () |
virtual void | SetShipFilter (DWORD f) |
virtual int | OnMouseMove (int x, int y) |
virtual int | OnLButtonDown (int x, int y) |
virtual int | OnLButtonUp (int x, int y) |
virtual int | OnClick () |
virtual int | OnRButtonDown (int x, int y) |
virtual int | OnRButtonUp (int x, int y) |
virtual bool | IsEnabled () const |
virtual bool | IsVisible () const |
virtual bool | IsFormActive () const |
virtual Rect | TargetRect () const |
void | ZoomIn () |
void | ZoomOut () |
void | SetGalaxy (List< StarSystem > &systems) |
void | SetSystem (StarSystem *s) |
void | SetMission (Mission *m) |
void | SetShip (Ship *s) |
void | SetCampaign (Campaign *c) |
bool | IsVisible (const Point &loc) |
virtual void | GetClickLoc (double &x, double &y) |
List< StarSystem > & | GetGalaxy () |
StarSystem * | GetSystem () const |
OrbitalRegion * | GetRegion () const |
virtual bool | Update (SimObject *obj) |
virtual const char * | GetObserverName () const |
bool | GetEditorMode () const |
void | SetEditorMode (bool b) |
Public Member Functions inherited from View | |
View (Window *c) | |
virtual | ~View () |
int | operator== (const View &that) const |
virtual void | SetWindow (Window *w) |
virtual Window * | GetWindow () |
Public Member Functions inherited from EventTarget | |
virtual | ~EventTarget () |
int | operator== (const EventTarget &t) const |
virtual int | OnSelect () |
virtual int | OnMouseEnter (int x, int y) |
virtual int | OnMouseExit (int x, int y) |
virtual int | OnMouseWheel (int wheel) |
virtual int | OnKeyDown (int vk, int flags) |
virtual void | SetFocus () |
virtual void | KillFocus () |
virtual bool | HasFocus () const |
virtual const char * | GetDescription () const |
Public Member Functions inherited from SimObserver | |
virtual | ~SimObserver () |
int | operator== (const SimObserver &o) const |
virtual void | Observe (SimObject *obj) |
virtual void | Ignore (SimObject *obj) |
Protected Member Functions | |
virtual void | BuildMenu () |
virtual void | ClearMenu () |
virtual void | ProcessMenuItem (int action) |
virtual bool | SetCapture () |
virtual bool | ReleaseCapture () |
virtual void | DrawTabbedText (Font *font, const char *text) |
bool | IsClutter (Ship &s) |
bool | IsCrowded (Ship &s) |
bool | IsCrowded (MissionElement &elem) |
void | GetShipLoc (Ship &s, POINT &loc) |
void | GetElemLoc (MissionElement &s, POINT &loc) |
void | SelectShip (Ship *selship) |
void | SelectElem (MissionElement *selelem) |
void | SelectNavpt (Instruction *navpt) |
void | FindShips (bool friendly, bool station, bool starship, bool dropship, List< Text > &result) |
void | SetupScroll (Orbital *s) |
double | GetMinRadius (int type) |
Additional Inherited Members | |
Static Public Member Functions inherited from View | |
static const char * | TYPENAME () |
Static Public Member Functions inherited from EventTarget | |
static const char * | TYPENAME () |
Static Public Member Functions inherited from SimObserver | |
static const char * | TYPENAME () |
MapView::MapView | ( | Window * | win | ) |
Definition at line 69 of file MapView.cpp.
|
virtual |
Definition at line 102 of file MapView.cpp.
|
protectedvirtual |
Definition at line 280 of file MapView.cpp.
|
protectedvirtual |
Definition at line 376 of file MapView.cpp.
Definition at line 2757 of file MapView.cpp.
|
virtual |
Definition at line 2835 of file MapView.cpp.
|
virtual |
Definition at line 2789 of file MapView.cpp.
|
virtual |
Definition at line 2400 of file MapView.cpp.
|
virtual |
Definition at line 1696 of file MapView.cpp.
|
virtual |
Definition at line 2069 of file MapView.cpp.
|
virtual |
Definition at line 2534 of file MapView.cpp.
|
virtual |
Definition at line 2091 of file MapView.cpp.
|
virtual |
Definition at line 1896 of file MapView.cpp.
|
virtual |
Definition at line 2276 of file MapView.cpp.
|
virtual |
Definition at line 1829 of file MapView.cpp.
|
protectedvirtual |
Definition at line 1597 of file MapView.cpp.
|
virtual |
Definition at line 1687 of file MapView.cpp.
|
protected |
Definition at line 779 of file MapView.cpp.
|
inlinevirtual |
|
protected |
Definition at line 3109 of file MapView.cpp.
|
inline |
|
protected |
Definition at line 2238 of file MapView.cpp.
|
inlinevirtual |
Reimplemented from SimObserver.
OrbitalRegion * MapView::GetRegion | ( | ) | const |
Definition at line 3158 of file MapView.cpp.
|
virtual |
Definition at line 1554 of file MapView.cpp.
|
virtual |
Definition at line 1548 of file MapView.cpp.
|
virtual |
Definition at line 1517 of file MapView.cpp.
|
virtual |
Definition at line 1562 of file MapView.cpp.
|
inlinevirtual |
|
protected |
Definition at line 3030 of file MapView.cpp.
|
inline |
|
protected |
Definition at line 2969 of file MapView.cpp.
|
protected |
Definition at line 2998 of file MapView.cpp.
|
protected |
Definition at line 3079 of file MapView.cpp.
|
virtual |
Reimplemented from EventTarget.
Definition at line 3235 of file MapView.cpp.
|
virtual |
Reimplemented from EventTarget.
Definition at line 3253 of file MapView.cpp.
|
virtual |
Reimplemented from EventTarget.
Definition at line 3244 of file MapView.cpp.
bool MapView::IsVisible | ( | const Point & | loc | ) |
Definition at line 1176 of file MapView.cpp.
|
virtual |
Reimplemented from EventTarget.
Definition at line 3359 of file MapView.cpp.
|
virtual |
Reimplemented from View.
Definition at line 3217 of file MapView.cpp.
|
virtual |
Reimplemented from EventTarget.
Definition at line 3364 of file MapView.cpp.
|
virtual |
Reimplemented from EventTarget.
Definition at line 3420 of file MapView.cpp.
|
virtual |
Reimplemented from EventTarget.
Definition at line 3273 of file MapView.cpp.
|
virtual |
Reimplemented from EventTarget.
Definition at line 3326 of file MapView.cpp.
|
virtual |
Reimplemented from EventTarget.
Definition at line 3344 of file MapView.cpp.
|
virtual |
Reimplemented from View.
Definition at line 3209 of file MapView.cpp.
|
virtual |
Reimplemented from View.
Definition at line 113 of file MapView.cpp.
|
protectedvirtual |
Definition at line 406 of file MapView.cpp.
|
virtual |
Reimplemented from View.
Definition at line 1617 of file MapView.cpp.
|
protectedvirtual |
Definition at line 614 of file MapView.cpp.
|
virtual |
Definition at line 1254 of file MapView.cpp.
|
protected |
Definition at line 693 of file MapView.cpp.
|
protected |
Definition at line 719 of file MapView.cpp.
|
protected |
Definition at line 672 of file MapView.cpp.
void MapView::SetCampaign | ( | Campaign * | c | ) |
Definition at line 243 of file MapView.cpp.
|
protectedvirtual |
Definition at line 602 of file MapView.cpp.
void MapView::SetGalaxy | ( | List< StarSystem > & | systems | ) |
Definition at line 122 of file MapView.cpp.
void MapView::SetMission | ( | Mission * | m | ) |
Definition at line 218 of file MapView.cpp.
|
virtual |
Definition at line 1202 of file MapView.cpp.
|
virtual |
Definition at line 1236 of file MapView.cpp.
|
virtual |
Definition at line 1084 of file MapView.cpp.
|
virtual |
Definition at line 1048 of file MapView.cpp.
|
virtual |
Definition at line 850 of file MapView.cpp.
|
virtual |
Definition at line 831 of file MapView.cpp.
void MapView::SetShip | ( | Ship * | s | ) |
Definition at line 189 of file MapView.cpp.
|
inlinevirtual |
void MapView::SetSystem | ( | StarSystem * | s | ) |
Definition at line 133 of file MapView.cpp.
|
protected |
Definition at line 1110 of file MapView.cpp.
|
virtual |
Definition at line 626 of file MapView.cpp.
|
virtual |
Reimplemented from EventTarget.
Definition at line 3262 of file MapView.cpp.
|
virtual |
Reimplemented from SimObserver.
Definition at line 659 of file MapView.cpp.
void MapView::ZoomIn | ( | ) |
Definition at line 3171 of file MapView.cpp.
void MapView::ZoomOut | ( | ) |
Definition at line 3189 of file MapView.cpp.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |