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

📄 conditionflagon.cpp

📁 天之炼狱1服务器端源文件游戏服务端不完整
💻 CPP
字号:
////////////////////////////////////////////////////////////////////////////////// Filename    : ConditionFlagOn.cpp// Written By  : // Description :////////////////////////////////////////////////////////////////////////////////#include "ConditionFlagOn.h"#include "PlayerCreature.h"#include "FlagSet.h"////////////////////////////////////////////////////////////////////////////////// is satisfied?////////////////////////////////////////////////////////////////////////////////bool ConditionFlagOn::isSatisfied (Creature * pCreature1 , Creature * pCreature2, void* pParam) const 	throw () { 	Assert(pCreature2 != NULL);	Assert(pCreature2->isPC());	PlayerCreature* pPC = dynamic_cast<PlayerCreature*>(pCreature2);	FlagSet* pFlagSet = pPC->getFlagSet();	if (pFlagSet->isOn(m_Index)) return true;	return false;}//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////void ConditionFlagOn::read (PropertyBuffer & propertyBuffer) 	throw (Error){	try	{		// read turn		m_Index = propertyBuffer.getPropertyInt("Index");	}	catch (NoSuchElementException & nsee)	{		throw Error(nsee.toString());	}}////////////////////////////////////////////////////////////////////////////////	// get debug string////////////////////////////////////////////////////////////////////////////////string ConditionFlagOn::toString () const 	throw () { 	__BEGIN_TRY	StringStream msg;	msg << "ConditionFlagOn("		<< "Index:" << (int)m_Index		<< ")"; 	return msg.toString();	__END_CATCH}

⌨️ 快捷键说明

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