⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gamestart.h

📁 3D俄罗斯方块源码.rar
💻 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 + -