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

📄 effectghostblade.cpp

📁 天之炼狱1服务器端源文件游戏服务端不完整
💻 CPP
字号:
//////////////////////////////////////////////////////////////////////////////// Filename    : EffectGhostBlade.cpp// Written by  : elca// Description ://////////////////////////////////////////////////////////////////////////////#include "EffectGhostBlade.h"#include "Creature.h"#include "Slayer.h"#include "Vampire.h"#include "Monster.h"#include "Player.h"#include "Gpackets/GCModifyInformation.h"#include "Gpackets/GCStatusCurrentHP.h"#include "Gpackets/GCRemoveEffect.h"////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////EffectGhostBlade::EffectGhostBlade(Creature* pCreature)	throw(Error){	__BEGIN_TRY	setTarget(pCreature);	__END_CATCH}////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////void EffectGhostBlade::affect(Creature* pCreature)	throw(Error){	__BEGIN_TRY																															    		__END_CATCH}////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////void EffectGhostBlade::unaffect()	    throw(Error){    __BEGIN_TRY	//cout << "EffectGhostBlade " << "unaffect BEGIN" << endl;    Creature* pCreature = dynamic_cast<Creature *>(m_pTarget);    unaffect(pCreature);	//cout << "EffectGhostBlade " << "unaffect END" << endl;    __END_CATCH}////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////void EffectGhostBlade::unaffect(Creature* pCreature)	throw(Error){	__BEGIN_TRY	__BEGIN_DEBUG	//cout << "EffectGhostBlade " << "unaffect BEGIN" << endl;	Assert(pCreature != NULL);	Assert(pCreature->isSlayer() == true);	Zone* pZone = pCreature->getZone();	Assert(pZone != NULL);	pCreature->removeFlag(Effect::EFFECT_CLASS_GHOST_BLADE);	Slayer* pSlayer = dynamic_cast<Slayer*>(pCreature);	SLAYER_RECORD prev;	pSlayer->getSlayerRecord(prev);	pSlayer->initAllStat();	pSlayer->sendRealWearingInfo();	pSlayer->sendModifyInfo(prev);	// 捞棋飘啊 荤扼脸促绊 舅妨霖促.	GCRemoveEffect gcRemoveEffect;	gcRemoveEffect.setObjectID(pSlayer->getObjectID());	gcRemoveEffect.addEffectList(Effect::EFFECT_CLASS_GHOST_BLADE);	pZone->broadcastPacket(pSlayer->getX(), pSlayer->getY(), &gcRemoveEffect);	//cout << "EffectGhostBlade " << "unaffect END" << endl;	__END_DEBUG	__END_CATCH}////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////string EffectGhostBlade::toString()	const throw(){	__BEGIN_TRY	StringStream msg;	msg << "EffectGhostBlade("		<< "ObjectID:" << getObjectID()		<< ")";	return msg.toString();	__END_CATCH}

⌨️ 快捷键说明

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