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

📄 actioncallhelicopter.cpp

📁 天之炼狱1服务器端源文件游戏服务端不完整
💻 CPP
字号:
////////////////////////////////////////////////////////////////////////////////// Filename    : ActionCallHelicopter.cpp// Written By  : // Description :////////////////////////////////////////////////////////////////////////////////#include "ActionCallHelicopter.h"#include "NPC.h"#include "Slayer.h"#include "GamePlayer.h"#include "Effect.h"#include "Gpackets/GCNPCResponse.h"////////////////////////////////////////////////////////////////////////////////// read from property buffer////////////////////////////////////////////////////////////////////////////////void ActionCallHelicopter::read (PropertyBuffer & propertyBuffer)    throw (Error){    __BEGIN_TRY    __END_CATCH}////////////////////////////////////////////////////////////////////////////////// 咀记阑 角青茄促.////////////////////////////////////////////////////////////////////////////////void ActionCallHelicopter::execute (Creature * pCreature1, Creature * pCreature2) 	throw (Error){	__BEGIN_TRY	Assert(pCreature1 != NULL);	Assert(pCreature2 != NULL);	Assert(pCreature1->isNPC());	Assert(pCreature2->isPC());	// 浇饭捞绢父捞 捞 咀记狼 措惑捞 等促.	if (!pCreature2->isSlayer()) return;	if (pCreature2->isFlag(Effect::EFFECT_CLASS_HAS_FLAG) || pCreature2->isFlag(Effect::EFFECT_CLASS_HAS_SWEEPER)) return;	Slayer* pSlayer = dynamic_cast<Slayer*>(pCreature2);	Assert(pSlayer != NULL);	// 浇饭捞绢俊霸 捞棋飘甫 吧绢霖促.	if (!pSlayer->isFlag(Effect::EFFECT_CLASS_SLAYER_PORTAL))		pSlayer->setFlag(Effect::EFFECT_CLASS_SLAYER_PORTAL);	Player* pPlayer = pCreature2->getPlayer();	Assert(pPlayer != NULL);	GCNPCResponse gcNPCResponse;	gcNPCResponse.setCode(NPC_RESPONSE_INTERFACE_HELICOPTER);	pPlayer->sendPacket(&gcNPCResponse);	__END_CATCH}////////////////////////////////////////////////////////////////////////////////// get debug string////////////////////////////////////////////////////////////////////////////////string ActionCallHelicopter::toString () const	throw (){	__BEGIN_TRY	StringStream msg;	msg << "ActionCallHelicopter("		<< ")";	return msg.toString();	__END_CATCH}

⌨️ 快捷键说明

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