📄 effectsnipingmode.cpp
字号:
//////////////////////////////////////////////////////////////////////////////// Filename : EffectSnipingMode.cpp// Written by : elca// Description ://////////////////////////////////////////////////////////////////////////////#include "EffectSnipingMode.h"#include "DB.h"#include "Slayer.h"#include "ZoneUtil.h"////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////EffectSnipingMode::EffectSnipingMode(Creature* pCreature) throw(Error){ __BEGIN_TRY setTarget(pCreature); m_RevealRatio = 0; __END_CATCH}////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////void EffectSnipingMode::affect(Creature* pCreature) throw(Error){ __BEGIN_TRY __END_CATCH}////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////void EffectSnipingMode::affect(Zone* pZone , ZoneCoord_t x , ZoneCoord_t y , Object* pObject) throw(Error){ __BEGIN_TRY __END_CATCH}////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////void EffectSnipingMode::unaffect(Creature* pCreature) throw(Error){ __BEGIN_TRY //cout << "EffectSnipingMode " << "unaffect BEGIN" << endl; Assert(pCreature != NULL); Assert(pCreature->isSlayer()); // 浇饭捞绢富绊绰 吧府瘤 臼绰促. Zone* pZone = pCreature->getZone(); Assert(pZone != NULL); // addUnSnipingModeCreature() 郴何俊辑 敲贰弊甫 掺骨肺... //pCreature->removeFlag(Effect::EFFECT_CLASS_SNIPING_MODE); addUnSnipingModeCreature(pZone, pCreature, false); Slayer* pSlayer = dynamic_cast<Slayer*>(pCreature); SLAYER_RECORD prev; pSlayer->getSlayerRecord(prev); pSlayer->initAllStat(); pSlayer->sendRealWearingInfo(); pSlayer->sendModifyInfo(prev); //cout << "EffectSnipingMode " << "unaffect END" << endl; __END_CATCH}////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////void EffectSnipingMode::unaffect() throw(Error){ __BEGIN_TRY Creature* pCreature = dynamic_cast<Creature*>(m_pTarget); unaffect(pCreature); __END_CATCH}////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////void EffectSnipingMode::unaffect(Zone* pZone , ZoneCoord_t x , ZoneCoord_t y , Object* pObject) throw(Error){ __BEGIN_TRY __END_CATCH}////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////string EffectSnipingMode::toString() const throw(){ __BEGIN_TRY StringStream msg; msg << "EffectSnipingMode(" << "ObjectID:" << getObjectID() << "RevealRatio:" << m_RevealRatio << ")"; return msg.toString(); __END_CATCH}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -