gamestart.h

来自「3D俄罗斯方块源码.rar」· C头文件 代码 · 共 62 行

H
62
字号
#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 + =
减小字号Ctrl + -
显示快捷键?