📄 actionrestore.cpp
字号:
////////////////////////////////////////////////////////////////////////////////// Filename : ActionRestore.cpp// Written By : // Description :////////////////////////////////////////////////////////////////////////////////#include "ActionRestore.h"#include "Creature.h"#include "NPC.h"#include "SkillHandlerManager.h"#include "Restore.h"#include "Gpackets/GCNPCResponse.h"//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////void ActionRestore::read (PropertyBuffer & propertyBuffer) throw (Error){ __BEGIN_TRY __END_CATCH}////////////////////////////////////////////////////////////////////////////////// 咀记阑 角青茄促.////////////////////////////////////////////////////////////////////////////////void ActionRestore::execute (Creature * pCreature1 , Creature * pCreature2) throw (Error){ __BEGIN_TRY Assert(pCreature1 != NULL); Assert(pCreature2 != NULL); Assert(pCreature1->isNPC()); Assert(pCreature2->isPC()); GCNPCResponse okpkt; pCreature2->getPlayer()->sendPacket(&okpkt); // NPC甫 掘绢郴绊... NPC* pNPC = dynamic_cast<NPC*>(pCreature1); // 胶懦 勤甸矾甫 掘绢辰促... SkillHandler* pSkillHandler = g_pSkillHandlerManager->getSkillHandler(SKILL_RESTORE); Assert(pSkillHandler != NULL); // 府胶配绢 勤甸矾肺 官操绊... Restore* pRestore = dynamic_cast<Restore*>(pSkillHandler); // 府胶配绢甫 荐青茄促. pRestore->execute(pNPC, pCreature2); __END_CATCH}////////////////////////////////////////////////////////////////////////////////// get debug string////////////////////////////////////////////////////////////////////////////////string ActionRestore::toString () const throw (){ __BEGIN_TRY StringStream msg; msg << "ActionRestore(" << ")"; return msg.toString(); __END_CATCH}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -