conditioncanenterlevelwarzone.cpp
来自「dk1游戏的原代码文件,完整.编译系统redhat7.3,mysql 3.23 」· C++ 代码 · 共 52 行
CPP
52 行
////////////////////////////////////////////////////////////////////////////////// Filename : ConditionCanEnterLevelWarZone.cpp// Written By : // Description :////////////////////////////////////////////////////////////////////////////////#include "ConditionCanEnterLevelWarZone.h"#include "CreatureUtil.h"#include "LevelWarZoneInfoManager.h"#include "VariableManager.h"////////////////////////////////////////////////////////////////////////////////// is satisfied?////////////////////////////////////////////////////////////////////////////////bool ConditionCanEnterLevelWarZone::isSatisfied (Creature * pCreature1 , Creature * pCreature2, void* pParam) const throw () { Assert(pCreature2 != NULL); Assert(pCreature2->isPC()); if ( g_pVariableManager->getVariable( ACTIVE_LEVEL_WAR ) == 0 ) return false; if ( g_pLevelWarZoneInfoManager->getCreatureLevelGrade( pCreature2 ) != -1 ) return true; return false;}//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////void ConditionCanEnterLevelWarZone::read (PropertyBuffer & propertyBuffer) throw (Error){}//////////////////////////////////////////////////////////////////////////////// // get debug string////////////////////////////////////////////////////////////////////////////////string ConditionCanEnterLevelWarZone::toString () const throw () { __BEGIN_TRY StringStream msg; msg << "ConditionCanEnterLevelWarZone(" << ")"; return msg.toString(); __END_CATCH}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?