Starshatter_Open
Open source Starshatter engine
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
NavDlg.h
Go to the documentation of this file.
1
/* Project Starshatter 4.5
2
Destroyer Studios LLC
3
Copyright © 1997-2004. All Rights Reserved.
4
5
SUBSYSTEM: Stars.exe
6
FILE: NavDlg.h
7
AUTHOR: John DiCamillo
8
9
10
OVERVIEW
11
========
12
Navigation Active Window class
13
*/
14
15
#ifndef NavDlg_h
16
#define NavDlg_h
17
18
#include "
Types.h
"
19
#include "
FormWindow.h
"
20
#include "
Bitmap.h
"
21
#include "
Button.h
"
22
#include "
Font.h
"
23
24
class
BaseScreen
;
25
class
MapView
;
26
class
StarSystem
;
27
class
Ship
;
28
class
SimRegion
;
29
class
Orbital
;
30
class
OrbitalRegion
;
31
class
Mission
;
32
33
// +--------------------------------------------------------------------+
34
35
class
NavDlg
:
public
FormWindow
36
{
37
public
:
38
NavDlg
(
Screen
* s,
FormDef
& def,
BaseScreen
* mgr);
39
virtual
~NavDlg
();
40
41
virtual
void
RegisterControls
();
42
43
// Operations:
44
virtual
void
OnView
(
AWEvent
*
event
);
45
virtual
void
OnFilter
(
AWEvent
* event);
46
virtual
void
OnSelect
(
AWEvent
* event);
47
virtual
void
OnCommit
(
AWEvent
* event);
48
virtual
void
OnCancel
(
AWEvent
* event);
49
virtual
void
OnEngage
(
AWEvent
* event);
50
virtual
void
OnMapDown
(
AWEvent
* event);
51
virtual
void
OnMapMove
(
AWEvent
* event);
52
virtual
void
OnMapClick
(
AWEvent
* event);
53
virtual
void
OnClose
(
AWEvent
* event);
54
55
virtual
void
ExecFrame
();
56
StarSystem
*
GetSystem
()
const
{
return
star_system
; }
57
void
SetSystem
(
StarSystem
* s);
58
Mission
*
GetMission
()
const
{
return
mission
; }
59
void
SetMission
(
Mission
* m);
60
Ship
*
GetShip
()
const
{
return
ship
; }
61
void
SetShip
(
Ship
* s);
62
63
bool
GetEditorMode
()
const
{
return
editor
; }
64
void
SetEditorMode
(
bool
b);
65
66
void
UseViewMode
(
int
mode);
67
void
UseFilter
(
int
index);
68
void
SelectObject
(
int
index);
69
void
UpdateSelection
();
70
void
UpdateLists
();
71
void
CoordinateSelection
();
72
73
void
SelectStar
(
Orbital
* star);
74
void
SelectPlanet
(
Orbital
* planet);
75
void
SelectRegion
(
OrbitalRegion
* rgn);
76
77
enum
NAV_EDIT_MODE
{
NAV_EDIT_NONE
= 0,
78
NAV_EDIT_ADD
= 1,
79
NAV_EDIT_DEL
= 2,
80
NAV_EDIT_MOVE
= 3 };
81
82
void
SetNavEditMode
(
int
mode);
83
int
GetNavEditMode
();
84
85
protected
:
86
Button
*
view_btn
[3];
87
Button
*
filter_btn
[6];
88
Button
*
commit_btn
;
89
Button
*
zoom_in_btn
;
90
Button
*
zoom_out_btn
;
91
Button
*
close_btn
;
92
93
MapView
*
star_map
;
94
ActiveWindow
*
map_win
;
95
ActiveWindow
*
loc_labels
;
96
ActiveWindow
*
dst_labels
;
97
ActiveWindow
*
loc_data
;
98
ActiveWindow
*
dst_data
;
99
100
ListBox
*
seln_list
;
101
ListBox
*
info_list
;
102
103
BaseScreen
*
manager
;
104
int
seln_mode
;
105
int
nav_edit_mode
;
106
107
StarSystem
*
star_system
;
108
List<Orbital>
stars
;
109
List<Orbital>
planets
;
110
List<OrbitalRegion>
regions
;
111
List<Ship>
contacts
;
112
113
Ship
*
ship
;
114
Mission
*
mission
;
115
bool
editor
;
116
};
117
118
#endif NavDlg_h
119
Stars45
NavDlg.h
Generated on Tue Jun 5 2012 20:47:01 for Starshatter_Open by
1.8.1