Starshatter_Open
Open source Starshatter engine
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
EngDlg.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: EngDlg.h
7
AUTHOR: John DiCamillo
8
9
10
OVERVIEW
11
========
12
Engineering (Power/Maint) Dialog Active Window class
13
*/
14
15
#ifndef EngDlg_h
16
#define EngDlg_h
17
18
#include "
Types.h
"
19
#include "
FormWindow.h
"
20
#include "
Bitmap.h
"
21
#include "
Button.h
"
22
#include "
ComboBox.h
"
23
#include "
ListBox.h
"
24
#include "
Font.h
"
25
26
// +--------------------------------------------------------------------+
27
28
class
GameScreen
;
29
class
Ship
;
30
class
PowerSource
;
31
class
System
;
32
class
Component
;
33
34
class
PowerClient;
35
36
// +--------------------------------------------------------------------+
37
38
class
EngDlg
:
public
FormWindow
39
{
40
public
:
41
EngDlg
(
Screen
* s,
FormDef
& def,
GameScreen
* mgr);
42
virtual
~EngDlg
();
43
44
virtual
void
Show
();
45
virtual
void
Hide
();
46
virtual
void
RegisterControls
();
47
48
// Operations:
49
virtual
void
OnSource
(
AWEvent
*
event
);
50
virtual
void
OnClient
(
AWEvent
* event);
51
virtual
void
OnRouteStart
(
AWEvent
* event);
52
virtual
void
OnRouteComplete
(
AWEvent
* event);
53
virtual
void
OnPowerOff
(
AWEvent
* event);
54
virtual
void
OnPowerOn
(
AWEvent
* event);
55
virtual
void
OnOverride
(
AWEvent
* event);
56
virtual
void
OnPowerLevel
(
AWEvent
* event);
57
virtual
void
OnComponent
(
AWEvent
* event);
58
virtual
void
OnAutoRepair
(
AWEvent
* event);
59
virtual
void
OnRepair
(
AWEvent
* event);
60
virtual
void
OnReplace
(
AWEvent
* event);
61
virtual
void
OnQueue
(
AWEvent
* event);
62
virtual
void
OnPriorityIncrease
(
AWEvent
* event);
63
virtual
void
OnPriorityDecrease
(
AWEvent
* event);
64
virtual
void
OnClose
(
AWEvent
* event);
65
66
virtual
void
ExecFrame
();
67
void
UpdateRouteTables
();
68
void
UpdateSelection
();
69
void
SetShip
(
Ship
* s);
70
71
protected
:
72
Ship
*
ship
;
73
GameScreen
*
manager
;
74
75
Button
*
close_btn
;
76
Button
*
sources
[4];
77
Slider
*
source_levels
[4];
78
ListBox
*
clients
[4];
79
ListBox
*
components
;
80
ListBox
*
repair_queue
;
81
ActiveWindow
*
selected_name
;
82
Button
*
power_off
;
83
Button
*
power_on
;
84
Button
*
override
;
85
Slider
*
power_level
;
86
Slider
*
capacity
;
87
Button
*
auto_repair
;
88
Button
*
repair
;
89
Button
*
replace
;
90
ActiveWindow
*
repair_time
;
91
ActiveWindow
*
replace_time
;
92
Button
*
priority_increase
;
93
Button
*
priority_decrease
;
94
95
PowerSource
*
route_source
;
96
List<System>
route_list
;
97
98
PowerSource
*
selected_source
;
99
List<System>
selected_clients
;
100
101
System
*
selected_repair
;
102
Component
*
selected_component
;
103
};
104
105
#endif EngDlg_h
106
Stars45
EngDlg.h
Generated on Thu May 31 2012 16:31:06 for Starshatter_Open by
1.8.1