Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/CGameMode.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: 1404 byte(s)


1 #ifndef CGAMEMODE_H_INCLUDED
2 #define CGAMEMODE_H_INCLUDED
3
4 #include "CCursor.h"
5 #include "CCamera.h"
6 #include "CInterface.h"
7
8 class CToggleIcon;
9
10 /*
11 * ゲームモード
12 */
13 class CGameMode{
14 protected:
15 static int ms_TopPanelTime; // 上パネル表示時間
16 static int ms_RightPanelTime; // 右パネル表示時間
17 static float ms_TopPanelShow; // 上パネル表示度
18 static float ms_RightPanelShow; // 右パネル表示度
19 static float ms_WindDirTemp; // 風力計変数
20 static string ms_ModeLabel; // モードラベル
21 static CGameMode *ms_ActiveMode; // 現在のモード
22 static CToggleIcon *ms_MenuIcon[MODE_NUM]; // モードアイコン
23 CInterface m_Interface; // 統括インターフェイス
24 public:
25 static void WakeUp();
26 static void InitMenu();
27 static void MainLoop();
28 static void LoadModeSettings();
29 static void SaveModeSettings(FILE *);
30 static void SetNeutral();
31 static void Exit(){ ms_ActiveMode = NULL; }
32 bool ScanInputFrame(int);
33 void RenderFrame(int);
34 void RenderCompass();
35 bool RenderDialog();
36 CGameMode();
37 virtual ~CGameMode(){}
38 bool IsModeActive(){ return ms_ActiveMode==this; }
39 virtual char *LoadSetting(char *str){ return str; }
40 virtual void SaveSetting(FILE *){}
41 void Enter();
42 virtual void EnterGame() = 0;
43 void Spin();
44 void SpinSound();
45 virtual void SpinGame() = 0;
46 virtual bool IsPaused(){ return false; }
47 int GetEffectSpeed();
48 };
49
50 #endif

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