maplayer.h

来自「网络游戏魔域源代码 测试可以完整变异」· C头文件 代码 · 共 38 行

H
38
字号
//----------------------------------------------------//
// MapLayer.h
//----------------------------------------------------//

#ifndef _MAPLAYER_H
#define _MAPLAYER_H


//------------------------------------------------------
#include "BaseFunc.h"
//------------------------------------------------------
class CMapLayer
{
public:
	CMapLayer(){m_nMoveRateX = 100; m_nMoveRateY = 100;}
	virtual ~CMapLayer(){;}
public:
	// define layer type ...
	enum{LAYER_NONE = 0, LAYER_TERRAIN,LAYER_FLOOR, LAYER_INTERACTIVE, LAYER_SCENE, LAYER_SKY, LAYER_SURFACE};
public:
	virtual void Show(CMyPos posShow);
	virtual void Process(void* pInfo);
	virtual int  GetType();
	
public:
	void	SetMoveRateX(int nMoveRateX){m_nMoveRateX = nMoveRateX;}
	void	SetMoveRateY(int nMoveRateY){m_nMoveRateY = nMoveRateY;}
	int		GetMoveRateX(){return m_nMoveRateX;}
	int		GetMoveRateY(){return m_nMoveRateY;}


private:
	int	m_nMoveRateX;
	int	m_nMoveRateY;
};
//------------------------------------------------------

#endif

⌨️ 快捷键说明

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