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

📄 scene.h

📁 国外网游源码....除工具源码缺少之外,其余程序都全...至于,什么游戏,因为国内还没有,所以找不到测试
💻 H
字号:
// Scene.h: interface for the CScene class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SCENE_H__8DF5E3E6_F360_448A_90E4_BF1175C16A39__INCLUDED_)
#define AFX_SCENE_H__8DF5E3E6_F360_448A_90E4_BF1175C16A39__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CMcFonts;

//enum GameScene { SCENE_UNKNOWN = 0, SCENE_INIT, SCENE_LOBBY, SCENE_GAME, SCENE_3DGAME, SCENE_WAITINGROOM, SCENE_ITEMSHOP };
enum GameScene { SCENE_UNKNOWN = 0, SCENE_SERVER, SCENE_CHANNEL, SCENE_INIT, SCENE_LOBBY, SCENE_BATTLEROOM, SCENE_MYINVEN, SCENE_CHARSHOP, SCENE_ITEMSHOP, SCENE_3DGAME };

class CScene  
{
public:
	CScene();
	virtual ~CScene();

	virtual void	OnLButtonUp( int x, int y, UINT nFlags ) = 0;
	virtual void	OnLButtonDown( BOOL fDoubleClick, int x, int y, UINT nFlags ) = 0;
	virtual void	OnRButtonUp( int x, int y, UINT nFlags ) = 0;
	virtual void	OnRButtonDown( BOOL fDoubleClick, int x, int y, UINT nFlags ) = 0;
	virtual void	OnLButtonDClick( BOOL fDoubleClick, int x, int y, UINT nkeyFlags ) = 0;

	virtual void	OnMouseMove( int x, int y, UINT nFlags ) = 0;
	virtual void	OnMouseWheel( int x, int y, UINT nFlags ) = 0;
	virtual void	OnKeyDown( BYTE bVk, BYTE bScan, DWORD dwFlags, ULONG_PTR dwExtraInfo ) = 0;
	virtual void	OnKeyUp( BYTE bVk, BYTE bScan, DWORD dwFlags, ULONG_PTR dwExtraInfo ) = 0;
	virtual void	OnChar(UINT nChar, WPARAM wParam, LPARAM lParam) = 0; //metaljack 眠啊
	

	virtual bool	LoadScene() = 0;
	virtual void	CleanupScene() = 0;
	virtual void	ProcessEvent(UINT nCtrlID, UINT nEvent, DWORD nParam) = 0;
	virtual bool	render() = 0;

	virtual LRESULT SceneProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) = 0;

	virtual HRESULT	InvalidateDeviceObjects() = 0;
	virtual HRESULT	RestoreDeviceObjects() = 0;

	UINT			GetScene()			  { return m_nCurrentScene;   }
	void			SetScene( UINT nScene ) { m_nCurrentScene = nScene; }
	
	//----------------------------------------------------------------------------
	//	L o a d i n g
	//----------------------------------------------------------------------------
	BOOL			CreateLoading(char *strBackImage, DWORD dwBX, DWORD dwBY,
								  char *strForeImage, DWORD dwFX, DWORD dwFY, DWORD nMax=100);
	BOOL			LoadingText(char *strFileName, DWORD dwX, DWORD dwY, 
								DWORD dwColor=D3DCOLOR_XRGB(0,0,0),
								DWORD dwHeight=0, bool Italic=0, BOOL bBold=0);

	BOOL			LoadingProgress(short nCurrent);
	
private:
	UINT			m_nCurrentScene;

	// Loading
	SPRITE_TEXTURE	*m_pBackTex;	// 肺爹 咆胶贸
	SPRITE_TEXTURE	*m_pForeTex;	// 肺爹 咆胶贸
	DWORD			m_dwPer;		// 坏季萍瘤
	short			m_nMax;
	short			m_nCur;

	DWORD			m_dwFX,m_dwFY;
	DWORD			m_dwBX,m_dwBY;
	CMcFonts		*m_pFonts;

};

#endif // !defined(AFX_SCENE_H__8DF5E3E6_F360_448A_90E4_BF1175C16A39__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -