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

📄 actionprepareteach.cpp

📁 天之炼狱1服务器端源文件游戏服务端不完整
💻 CPP
字号:
////////////////////////////////////////////////////////////////////////////////// Filename    : ActionPrepareTeach.cpp// Written By  : // Description : // 背包 NPC啊 啊福媚 临 荐 乐绰 扁贱狼 辆幅甫 沥窍绰 咀记捞促.// PrepareShop苞 厚搅窍霸 AtFirst 牧叼记阑 捞侩窍咯 贸澜// 茄锅父 角青窍绊 促矫绰 角青窍瘤 臼绰促.////////////////////////////////////////////////////////////////////////////////#include "ActionPrepareTeach.h"#include "Creature.h"#include "NPC.h"////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////void ActionPrepareTeach::read (PropertyBuffer & propertyBuffer)    throw (Error){	__BEGIN_TRY	try 	{		// 捞 NPC啊 啊福媚 临 荐 乐绰 钙胶 饭骇阑 佬绢甸牢促.		m_MaxLevel = (SkillLevel_t)propertyBuffer.getPropertyInt("MaxLevel");	} 	catch (NoSuchElementException & nsee)	{		throw Error(nsee.toString());	}		__END_CATCH}////////////////////////////////////////////////////////////////////////////////// 咀记阑 角青茄促.////////////////////////////////////////////////////////////////////////////////void ActionPrepareTeach::execute (Creature * pCreature1 , Creature * pCreature2) 	throw (Error){	__BEGIN_TRY	Assert(pCreature1 != NULL);	Assert(pCreature1->isNPC());	NPC* pNPC = dynamic_cast<NPC*>(pCreature1);	pNPC->setMaxSkillLevel(m_MaxLevel);	__END_CATCH}////////////////////////////////////////////////////////////////////////////////// get debug string////////////////////////////////////////////////////////////////////////////////string ActionPrepareTeach::toString () const 	throw (){	__BEGIN_TRY	StringStream msg;	msg << "ActionPrepareTeach("	    << "MaxLevel:" << (int)m_MaxLevel 		<< ")";	return msg.toString();	__END_CATCH}

⌨️ 快捷键说明

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