actionwaitformeetcouple.cpp
来自「dk1游戏的原代码文件,完整.编译系统redhat7.3,mysql 3.23 」· C++ 代码 · 共 81 行
CPP
81 行
////////////////////////////////////////////////////////////////////////////////// Filename : ActionWaitForMeetCouple.cpp// Written By : // Description :////////////////////////////////////////////////////////////////////////////////#include "ActionWaitForMeetCouple.h"#include "SystemAvailabilitiesManager.h"#include "Creature.h"#include "NPC.h"#include "GamePlayer.h"#include "Gpackets/GCNPCResponse.h"////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////void ActionWaitForMeetCouple::read (PropertyBuffer & propertyBuffer) throw (Error){ __BEGIN_TRY try { } catch (NoSuchElementException & nsee) { throw Error(nsee.toString()); } __END_CATCH}////////////////////////////////////////////////////////////////////////////////// 咀记阑 角青茄促.////////////////////////////////////////////////////////////////////////////////void ActionWaitForMeetCouple::execute (Creature * pCreature1 , Creature * pCreature2) throw (Error){ __BEGIN_TRY Assert(pCreature1 != NULL); Assert(pCreature2 != NULL); Assert(pCreature1->isNPC()); Assert(pCreature2->isPC()); SYSTEM_RETURN_IF_NOT( SYSTEM_COUPLE ); NPC* pNPC = dynamic_cast<NPC*>(pCreature1); Assert( pNPC != NULL );// cout << "ActionWaitForMeeCouple(" << pNPC->getObjectID() << ")" << endl; GCNPCResponse gcNPCResponse; gcNPCResponse.setCode( NPC_RESPONSE_WAIT_FOR_MEET_COUPLE ); Player* pPlayer = pCreature2->getPlayer(); pPlayer->sendPacket(&gcNPCResponse); __END_CATCH}////////////////////////////////////////////////////////////////////////////////// get debug string////////////////////////////////////////////////////////////////////////////////string ActionWaitForMeetCouple::toString () const throw (){ __BEGIN_TRY StringStream msg; msg << "ActionWaitForMeetCouple(" << ")"; return msg.toString(); __END_CATCH}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?