?? gamestart.h
字號:
#ifndef _GAMESTART_H
#define _GAMESTART_H
//--------------------------------------------------------------
/**\!File
*
*File name:GAMESTART.h
*
*His:add by honghaier @2004/5/7
*
*Desc:游戲開始部分類
*/
//---------------------------------------------------------------
#include <d3dx8.h>
#include "GameMenu.h"
#include "dmutil.h"
#include <windows.h>
#include "Cuboid.h"
#include "SetControlGui.h"
#include "SetOther.h"
//---------------------------------------------------------------
class CGameStart
{
int m_x;
int m_y;
HWND m_hWnd;
LPDIRECT3DDEVICE8 m_pd3dDevice;
CD3DFont *m_pFont;//字體
TCHAR m_strFont[100];
DWORD m_dwFontSize;
CCuboid *m_wood[8];
public:
SetControlGui m_ControlGUI;
CSetOther m_OtherGUI;
bool m_ShowContorl;
bool m_ShowOther;
CGameMenu *m_menu;
int m_personnum;
int m_align;
int m_row;
int m_leve;
bool m_isshownext;
bool m_type;//是否增加
bool init(HWND _hWnd,LPDIRECT3DDEVICE8 pd3dDevice,int _x,int _y);
void Render();
bool GameLoop(int *);
CGameStart();
~CGameStart();
bool CleanRender();
void RenderWood();
void RenderTowWood();
void ShowSetControlGUI();
void ShowOtherGUI();
/**!\brief
*\param a:級別
*\parma b:行數
*\param c:align
*\param d:是否顯示
*\param e:是否增加
*/
void SetOther(int a,int b,int c,bool d,bool e);
};
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -