📄 actionpetdeposit.cpp
字号:
////////////////////////////////////////////////////////////////////////////////// Filename : ActionPetDeposit.cpp// Written By : // Description :////////////////////////////////////////////////////////////////////////////////#include "ActionQuitDialogue.h"#include "ActionPetDeposit.h"#include "PlayerCreature.h"#include "NPC.h"#include "GamePlayer.h"#include "PacketUtil.h"#include "Gpackets/GCPetStashList.h"#include "Gpackets/GCNPCResponse.h"////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////void ActionPetDeposit::read (PropertyBuffer & propertyBuffer) throw (Error){ __BEGIN_TRY try { } catch (NoSuchElementException & nsee) { throw Error(nsee.toString()); } __END_CATCH}////////////////////////////////////////////////////////////////////////////////// 咀记阑 角青茄促.////////////////////////////////////////////////////////////////////////////////void ActionPetDeposit::execute (Creature * pCreature1 , Creature * pCreature2) throw (Error){ __BEGIN_TRY Assert(pCreature1 != NULL); Assert(pCreature2 != NULL); Assert(pCreature1->isNPC()); Assert(pCreature2->isPC()); PlayerCreature* pPC = dynamic_cast<PlayerCreature*>(pCreature2); Assert( pPC != NULL ); GCPetStashList gcPetStashList; makeGCPetStashList( &gcPetStashList, pPC ); /* 浦焊包窃捞 哆扁 傈俊 措拳芒阑 摧酒林绢具 窍扁俊 朝赴促.*/ GCNPCResponse response; response.setCode(NPC_RESPONSE_QUIT_DIALOGUE); pPC->getPlayer()->sendPacket(&response); gcPetStashList.setCode(1); pPC->getPlayer()->sendPacket( &gcPetStashList ); __END_CATCH}////////////////////////////////////////////////////////////////////////////////// get debug string////////////////////////////////////////////////////////////////////////////////string ActionPetDeposit::toString () const throw (){ __BEGIN_TRY StringStream msg; msg << "ActionPetDeposit(" << ")"; return msg.toString(); __END_CATCH}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -