Starshatter_Open
Open source Starshatter engine
 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:
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 
80 
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;
94  bool captured;
95 
98 };
99 
100 #endif TacRefDlg_h
101