actioncontractgnomeshorn.cpp

来自「dk1游戏的原代码文件,完整.编译系统redhat7.3,mysql 3.23 」· C++ 代码 · 共 82 行

CPP
82
字号
////////////////////////////////////////////////////////////////////////////////// Filename    : ActionContractGnomesHorn.cpp// Written By  : // Description : // NPC啊 酒捞袍阑 敲饭捞绢俊霸 颇绰 咀记捞促. 角力肺绰 芭贰甫 // 矫累窍霸 父靛绰 咀记捞哥, 窍绰 老篮 敲饭捞绢俊霸 泅犁 NPC狼// 惑痢 滚傈阑 菩哦栏肺 焊郴林绰 老 挥捞促.////////////////////////////////////////////////////////////////////////////////#include "ActionContractGnomesHorn.h"#include "Creature.h"#include "NPC.h"#include "Script.h"#include "Trigger.h"#include "GamePlayer.h"#include "PlayerCreature.h"#include "FlagSet.h"#include "Gpackets/GCNPCResponse.h"////////////////////////////////////////////////////////////////////////////////// ActionContractGnomesHorn 咀记篮 弊成 努扼捞攫飘俊霸 ShopVersion阑 焊郴林绰 巴捞骨肺,// 漂喊洒 佬绢甸咯具 且 颇扼固磐啊 绝促.////////////////////////////////////////////////////////////////////////////////void ActionContractGnomesHorn::read (PropertyBuffer & propertyBuffer)    throw (Error){    __BEGIN_TRY    __END_CATCH}////////////////////////////////////////////////////////////////////////////////// 咀记阑 角青茄促.////////////////////////////////////////////////////////////////////////////////void ActionContractGnomesHorn::execute (Creature * pCreature1 , Creature * pCreature2) 	throw (Error){	__BEGIN_TRY	Assert(pCreature1 != NULL);	Assert(pCreature2 != NULL);	Assert(pCreature1->isNPC());	Assert(pCreature2->isPC());	NPC* pNPC = dynamic_cast<NPC*>(pCreature1);	Player* pPlayer = pCreature2->getPlayer();	Assert(pPlayer != NULL);	PlayerCreature* pPC = dynamic_cast<PlayerCreature*>(pCreature2);	Assert(pPC != NULL);	FlagSet* pFlagSet = pPC->getFlagSet();	Assert(pFlagSet != NULL);	pFlagSet->turnOn( FLAGSET_GNOMES_HORN );	pFlagSet->save( pPC->getName() );	GCNPCResponse gcNPCResponse;	gcNPCResponse.setCode( NPC_RESPONSE_GNOME_CONTRACT_OK );	pPC->getPlayer()->sendPacket(&gcNPCResponse);	__END_CATCH}////////////////////////////////////////////////////////////////////////////////// get debug string////////////////////////////////////////////////////////////////////////////////string ActionContractGnomesHorn::toString () const 	throw (){	__BEGIN_TRY	StringStream msg;	msg << "ActionContractGnomesHorn(" << ")";	return msg.toString();	__END_CATCH}

⌨️ 快捷键说明

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