cgtamemonster.h
来自「dk1游戏的原代码文件,完整.编译系统redhat7.3,mysql 3.23 」· C头文件 代码 · 共 84 行
H
84 行
//////////////////////////////////////////////////////////////////////// // Filename : CGTameMonster // Written By : elca@ewestsoft.com// Description : // //////////////////////////////////////////////////////////////////////#ifndef __CG_TAME_MONSTER_H__#define __CG_TAME_MONSTER_H__// include files#include "Types.h"#include "Exception.h"#include "Packet.h"#include "PacketFactory.h"////////////////////////////////////////////////////////////////////////// class CGTameMonster;////////////////////////////////////////////////////////////////////////class CGTameMonster : public Packet {public: CGTameMonster() throw(); ~CGTameMonster() 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_CG_TAME_MONSTER; } PacketSize_t getPacketSize() const throw() { return szObjectID; } string getPacketName() const throw() { return "CGTameMonster"; } string toString() const throw(); public: // get/set ObjectID ObjectID_t getObjectID() const throw() { return m_ObjectID; } void setObjectID(ObjectID_t ObjectID) throw() { m_ObjectID = ObjectID; } private : ObjectID_t m_ObjectID; // ObjectID};////////////////////////////////////////////////////////////////////////// class CGTameMonsterFactory;//// Factory for CGTameMonster////////////////////////////////////////////////////////////////////////class CGTameMonsterFactory : public PacketFactory {public: CGTameMonsterFactory() throw() {} virtual ~CGTameMonsterFactory() throw() {}public: Packet* createPacket() throw() { return new CGTameMonster(); } string getPacketName() const throw() { return "CGTameMonster"; } PacketID_t getPacketID() const throw() { return Packet::PACKET_CG_TAME_MONSTER; } PacketSize_t getPacketMaxSize() const throw() { return szObjectID; }};////////////////////////////////////////////////////////////////////////// class CGTameMonsterHandler;////////////////////////////////////////////////////////////////////////class CGTameMonsterHandler { public: static void execute(CGTameMonster* pCGTameMonster, Player* player) throw(Error);};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?