📄 conditionansweredby.cpp
字号:
////////////////////////////////////////////////////////////////////////////////// Filename : ConditionAnsweredBy.cpp// Written By : // Description :////////////////////////////////////////////////////////////////////////////////#include "ConditionAnsweredBy.h"////////////////////////////////////////////////////////////////////////////////// is satisfied?////////////////////////////////////////////////////////////////////////////////bool ConditionAnsweredBy::isSatisfied(Creature* pCreature1, Creature* pCreature2, void* pParam) const throw (){ // check parameter if (pParam == NULL) return false; COND_ANSWERED_BY* pCond = (COND_ANSWERED_BY*)pParam; // 胶农赋飘 ID客 措翠ID啊 鞍促搁 捞 牧叼记篮 true if (pCond->ScriptID == m_ScriptID && pCond->AnswerID == m_AnswerID) return true; return false; }//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////void ConditionAnsweredBy::read (PropertyBuffer & propertyBuffer) throw (Error){ try { // read script & answer id m_ScriptID = propertyBuffer.getPropertyInt("ScriptID"); m_AnswerID = propertyBuffer.getPropertyInt("AnswerID"); } catch (NoSuchElementException & nsee) { throw Error(nsee.toString()); }}//////////////////////////////////////////////////////////////////////////////// // get debug string////////////////////////////////////////////////////////////////////////////////string ConditionAnsweredBy::toString () const throw () { __BEGIN_TRY StringStream msg; msg << "ConditionAnsweredBy(" << "ScriptID:" << (int)m_ScriptID << "," << "AnswerID:" << (int)m_AnswerID << ")"; return msg.toString(); __END_CATCH}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -