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

📄 weatherregion.h

📁 网络游戏魔域的服务端与客户端完整源代码 包括详细的说明文档与开发日志
💻 H
字号:
// WeatherRegion.h: interface for the CWeatherRegion class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_WEATHERREGION_H__41C09DAF_9327_4256_9638_2D7FB2CAF6F0__INCLUDED_)
#define AFX_WEATHERREGION_H__41C09DAF_9327_4256_9638_2D7FB2CAF6F0__INCLUDED_

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

#include "Weather.h"

class CWeatherRegion : IWeatherOwner
{
protected:
	CWeatherRegion();
	virtual ~CWeatherRegion();
public:
	static CWeatherRegion* CreateNew()		{ return new CWeatherRegion; }
	void	ReleaseByOwner()				{ delete this; }
	OBJID	GetID()							{ return m_pData->GetID(); }
	bool	Create(CRegionData* pData, PROCESS_ID idProcess);
	CWeather* QueryWeather()				{ CHECKF(m_pWeather); return m_pWeather; }
	CRegionData* QueryRegion()				{ CHECKF(m_pData); return m_pData; }

public: // interface
	virtual void	BroadcastMsg(CNetMsg* pMsg, CUser* pExclude=NULL);

protected:
	CWeather*		m_pWeather;
	CRegionData*	m_pData;

protected: // ctrl
	PROCESS_ID		m_idProcess;

	MYHEAP_DECLARATION(s_heap)
};

typedef	IGameObjSet<CWeatherRegion>		IWeatherSet;
typedef	CGameObjSet<CWeatherRegion>		CWeatherSet;

#endif // !defined(AFX_WEATHERREGION_H__41C09DAF_9327_4256_9638_2D7FB2CAF6F0__INCLUDED_)

⌨️ 快捷键说明

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