Starshatter_Open
Open source Starshatter engine
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
TacRefDlg.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: TacRefDlg.h
7
AUTHOR: John DiCamillo
8
9
10
OVERVIEW
11
========
12
Mission Briefing Dialog Active Window class
13
*/
14
15
#ifndef TacRefDlg_h
16
#define TacRefDlg_h
17
18
#include "
Types.h
"
19
#include "
FormWindow.h
"
20
#include "
MsnDlg.h
"
21
#include "
Bitmap.h
"
22
#include "
Button.h
"
23
#include "
CameraView.h
"
24
#include "
ImgView.h
"
25
#include "
Scene.h
"
26
#include "
Font.h
"
27
#include "
Text.h
"
28
#include "
ListBox.h
"
29
#include "
RichTextBox.h
"
30
31
// +--------------------------------------------------------------------+
32
33
class
MenuScreen
;
34
class
ShipDesign
;
35
class
WeaponDesign
;
36
37
// +--------------------------------------------------------------------+
38
39
class
TacRefDlg
:
public
FormWindow
40
{
41
public
:
42
enum
MODES
{
MODE_NONE
,
MODE_SHIPS
,
MODE_WEAPONS
};
43
44
TacRefDlg
(
Screen
* s,
FormDef
& def,
MenuScreen
* mgr);
45
virtual
~TacRefDlg
();
46
47
virtual
void
RegisterControls
();
48
virtual
void
ExecFrame
();
49
virtual
void
Show
();
50
51
// Operations:
52
virtual
void
OnClose
(
AWEvent
*
event
);
53
virtual
void
OnMode
(
AWEvent
*
event
);
54
virtual
void
OnSelect
(
AWEvent
*
event
);
55
virtual
void
OnCamRButtonDown
(
AWEvent
*
event
);
56
virtual
void
OnCamRButtonUp
(
AWEvent
*
event
);
57
virtual
void
OnCamMove
(
AWEvent
*
event
);
58
virtual
void
OnCamZoom
(
AWEvent
*
event
);
59
60
protected
:
61
virtual
void
SelectShip
(
const
ShipDesign
* dsn);
62
virtual
void
SelectWeapon
(
const
WeaponDesign
* dsn);
63
64
virtual
void
UpdateZoom
(
double
r);
65
virtual
void
UpdateAzimuth
(
double
a);
66
virtual
void
UpdateElevation
(
double
e);
67
virtual
void
UpdateCamera
();
68
virtual
bool
SetCaptureBeauty
();
69
virtual
bool
ReleaseCaptureBeauty
();
70
71
MenuScreen
*
manager
;
72
ActiveWindow
*
beauty
;
73
ListBox
*
lst_designs
;
74
ActiveWindow
*
txt_caption
;
75
RichTextBox
*
txt_stats
;
76
RichTextBox
*
txt_description
;
77
Button
*
btn_ships
;
78
Button
*
btn_weaps
;
79
Button
*
btn_close
;
80
81
ImgView
*
imgview
;
82
CameraView
*
camview
;
83
Scene
scene
;
84
Camera
cam
;
85
86
int
mode
;
87
double
radius
;
88
double
cam_zoom
;
89
double
cam_az
;
90
double
cam_el
;
91
int
mouse_x
;
92
int
mouse_y
;
93
bool
update_scene
;
94
bool
captured
;
95
96
int
ship_index
;
97
int
weap_index
;
98
};
99
100
#endif TacRefDlg_h
101
Stars45
TacRefDlg.h
Generated on Tue Jun 5 2012 20:47:14 for Starshatter_Open by
1.8.1