actionbuy.cpp

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

CPP
79
字号
////////////////////////////////////////////////////////////////////////////////// Filename    : ActionBuy.cpp// Written By  : // Description : // NPC啊 敲饭捞绢肺何磐 酒捞袍阑 荤甸捞绰 咀记捞促. Sell 咀记苞// 付蛮啊瘤肺 漂喊洒 窍绰 老篮 绝绊, 窜瘤 敲饭捞绢俊霸 泅犁 // 惑痢狼 滚傈狼 菩哦栏肺 焊郴林绰 开且阑 茄促.////////////////////////////////////////////////////////////////////////////////#include "ActionBuy.h"#include "Creature.h"#include "NPC.h"#include "Gpackets/GCNPCResponse.h"#include "Gpackets/GCShopMarketCondition.h"#include "GamePlayer.h"////////////////////////////////////////////////////////////////////////////////// ActionBuy 咀记篮 弊成 努扼捞攫飘俊霸 ShopVersion阑 焊郴林绰 巴捞骨肺,// 漂喊洒 佬绢甸咯具 且 颇扼固磐啊 绝促.//// 唱吝俊 漂沥 辆幅狼 酒捞袍阑 荤甸捞绰 惑痢 鞍篮 巴阑 父甸绊磊 窍搁,// 咯扁辑 橇肺欺萍甫 父甸绢辑 佬绢甸捞搁 登摆瘤. 褥... NPC 何盒档 绊媚具// 且 巴捞绊...////////////////////////////////////////////////////////////////////////////////void ActionBuy::read (PropertyBuffer & propertyBuffer)    throw (Error){    __BEGIN_TRY    __END_CATCH}////////////////////////////////////////////////////////////////////////////////// 咀记阑 角青茄促.////////////////////////////////////////////////////////////////////////////////void ActionBuy::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);	// 刚历 措翠阑 肋 罐疽促绰 荤角阑 努扼捞攫飘俊霸 舅妨霖促.	GCNPCResponse okpkt;	pPlayer->sendPacket(&okpkt);	// 泅犁 矫厘 矫技甫 舅妨霖促.	GCShopMarketCondition pkt;	pkt.setObjectID(pNPC->getObjectID());	pkt.setMarketCondBuy(pNPC->getMarketCondBuy());	pkt.setMarketCondSell(pNPC->getMarketCondSell());	pPlayer->sendPacket(&pkt);	__END_CATCH}////////////////////////////////////////////////////////////////////////////////// get debug string////////////////////////////////////////////////////////////////////////////////string ActionBuy::toString () const 	throw (){	__BEGIN_TRY	StringStream msg;	msg << "ActionBuy(" << ")";	return msg.toString();	__END_CATCH}

⌨️ 快捷键说明

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