Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/CSimulationMode.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations) (download) (as text)
Sun Aug 15 01:53:13 2010 UTC (13 years, 9 months ago) by okadu
File MIME type: text/x-chdr
File size: 1749 byte(s)


1 #ifndef CSIMULATIONMODE_H_INCLUDED
2 #define CSIMULATIONMODE_H_INCLUDED
3
4 #include "CStaticCtrl.h"
5 #include "CGroupBox.h"
6 #include "CRadioButton.h"
7 #include "CCheckBox.h"
8 #include "CInterfaceMode.h"
9
10 const int TIME_SCALE_NUM = 10;
11 const int SIM_SPEED_NUM = 5;
12
13 /*
14 * シミュレーション設定モード
15 */
16 class CSimulationMode: public CInterfaceMode{
17 friend class CSaveFile;
18 private:
19 int m_OldSpeed; // ポーズ前の速度
20 CWindowCtrl m_SimulationWindow; // 窓
21 CGroupBox m_ScaleGroup; // スケールグループ
22 CRadioButton m_TimeScale[TIME_SCALE_NUM]; // 時間軸スケール
23 CGroupBox m_SpeedGroup; // 速度グループ
24 CRadioButton m_SimSpeed[SIM_SPEED_NUM]; // シミュレーション速度
25 CGroupBox m_TimeGroup; // 時間経過
26 CStaticCtrl m_RotLabel; // 地球の自転
27 CRadioButton m_EarthRotation[3]; // 自転チェック
28 CStaticCtrl m_RevLabel; // 地球の公転
29 CRadioButton m_EarthRevolution[5]; // 公転チェック
30 CGroupBox m_MiscGroup; // 時間経過
31 CCheckBox m_ManualControl; // マニュアル操作
32 CCheckBox m_IgnoreAcceleration; // 加減速度を無視
33 CStaticCtrl m_NoteLabel; // 注意書き
34 public:
35 CSimulationMode();
36 ~CSimulationMode(){}
37 void EnterInterface();
38 void ScanInputInterface();
39 void InitTimeOption();
40 int GetEarthRotation(){ return m_EarthRotation->GetNumber(); }
41 int GetEarthRevolution(){ return m_EarthRevolution->GetNumber(); }
42 int GetTimeScale();
43 int GetSimSpeed();
44 int GetOldSpeed(){ return m_OldSpeed; }
45 void SetSimSpeed(int);
46 void TogglePause();
47 int GetManualControl(){ return m_ManualControl.GetCheck(); }
48 int GetIgnoreAcceleration(){ return m_IgnoreAcceleration.GetCheck(); }
49 };
50
51 // 外部グローバル
52 extern CSimulationMode *g_SimulationMode;
53
54 #endif

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26