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

📄 actionbuy.cpp

📁 天之炼狱1服务器端源文件游戏服务端不完整
💻 CPP
字号:
////////////////////////////////////////////////////////////////////////////////// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -