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

📄 gcminigamescores.h

📁 天之炼狱1服务器端源文件游戏服务端不完整
💻 H
字号:
//////////////////////////////////////////////////////////////////////////////// Filename    : GCMiniGameScores.h // Written By  : elca@ewestsoft.com// Description : // 扁贱捞 己傍沁阑锭 焊郴绰 菩哦阑 困茄 努贰胶 沥狼//////////////////////////////////////////////////////////////////////////////#ifndef __GC_MINI_GAME_SCORES_H__#define __GC_MINI_GAME_SCORES_H__#include "Types.h"#include "Exception.h"#include "Packet.h"#include "PacketFactory.h"#include "Assert.h"#include <list>enum GameType{	GAME_MINE = 0,	GAME_NEMO,	GAME_PUSH,	GAME_ARROW};//////////////////////////////////////////////////////////////////////////////// class GCMiniGameScores;// 霸烙辑滚俊辑 努扼捞攫飘肺 磊脚狼 扁贱捞 己傍阑 舅妨林扁 困茄 努贰胶//////////////////////////////////////////////////////////////////////////////class GCMiniGameScores : public Packet {public:	GCMiniGameScores() throw();	~GCMiniGameScores() throw();	public:    void read(SocketInputStream & iStream) throw(ProtocolException, Error);    void write(SocketOutputStream & oStream) const throw(ProtocolException, Error);	void execute(Player* pPlayer) throw(ProtocolException, Error);	PacketID_t getPacketID() const throw() { return PACKET_GC_MINI_GAME_SCORES; }	PacketSize_t getPacketSize() const throw();	string getPacketName() const throw() { return "GCMiniGameScores"; }	string toString() const throw();public:	BYTE getGameType() const { return m_GameType; }	void setGameType( GameType type ) { m_GameType = (BYTE)type; }	BYTE getLevel() const { return m_Level; }	void setLevel( BYTE level ) { m_Level = (BYTE)level; }	const pair<string,WORD> popScore() { pair<string,WORD> ret = m_Scores.front(); m_Scores.pop_front(); return ret; }	void addScore(const string& name, WORD score) { m_Scores.push_back( pair<string,WORD>(name,score) ); }	list<pair<string,WORD> >::size_type getSize() const { return m_Scores.size(); }private:	BYTE m_GameType;	BYTE m_Level;	list<pair<string,WORD> > m_Scores;};//////////////////////////////////////////////////////////////////////////////// class GCMiniGameScoresFactory;//////////////////////////////////////////////////////////////////////////////class GCMiniGameScoresFactory : public PacketFactory {public :	GCMiniGameScoresFactory() throw() {}	virtual ~GCMiniGameScoresFactory() throw() {}	public:	Packet* createPacket() throw() { return new GCMiniGameScores(); }	string getPacketName() const throw() { return "GCMiniGameScores"; }	PacketID_t getPacketID() const throw() { return Packet::PACKET_GC_MINI_GAME_SCORES; }	PacketSize_t getPacketMaxSize() const throw() { return szBYTE + szBYTE + szBYTE + (szWORD+21) * 10; }};//////////////////////////////////////////////////////////////////////////////// class GCMiniGameScoresHandler;//////////////////////////////////////////////////////////////////////////////class GCMiniGameScoresHandler {public:	static void execute(GCMiniGameScores* pGCMiniGameScores, Player* pPlayer) throw(Error);};#endif

⌨️ 快捷键说明

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