63 const int amount =
msg.readInt32(
"amount");
64 const int type =
msg.readInt16(
"type");
65 const uint8_t identify =
msg.readUInt8(
"identify");
66 msg.readUInt8(
"attribute");
67 const uint8_t refine =
msg.readUInt8(
"refine");
70 cards[f] =
msg.readUInt16(
"card");
101 Item *item =
nullptr;
111 const int quantity =
msg.readInt16(
"amount");
113 const uint8_t res =
msg.readUInt8(
"status");
152 logger->
log(
"QQQ SMSG_TRADE_ITEM_ADD_RESPONSE: "
167 const uint8_t type =
msg.readUInt8(
"type");
#define fromBool(val, name)
Item * getItem(const int index) const
uint8_t getRefine() const
Equipm isEquipment() const
Favorite getFavorite() const
ItemColor getColor() const
Identified getIdentified() const
ItemTypeT getType() const
Damaged getDamaged() const
const int * getCards() const
void increaseQuantity(const int amount)
void log(const char *const log_text,...)
virtual void respond(const bool accept) const
bool hasPermission(const Being *const being, const unsigned int flags) const
void setMoney(const int quantity)
void receivedOk(const bool own)
void addItem2(const int id, const ItemTypeT type, const int *const cards, const ItemOptionsList *const options, const int sz, const bool own, const int quantity, const uint8_t refine, const ItemColor color, const Identified identified, const Damaged damaged, const Favorite favorite, const Equipm equipment) const
static const int INVENTORY_OFFSET
const bool Favorite_false
const ItemColor ItemColor_one
#define UNIMPLEMENTEDPACKETFIELD(field)
bool msg(InputEvent &event)
std::string toString(T const &value)
converts any type to a string
void processTradeResponseContinue(const uint8_t type)
void processTradeRequestContinue(const std::string &partner)
void notify(const unsigned int message)
@ TRADE_ADD_PARTNER_OVER_WEIGHT
@ TRADE_ADD_PARTNER_NO_SLOTS
@ TRADE_ADD_UNTRADABLE_ITEM
Inventory * getInventory()
void processTradeRequest(Net::MessageIn &msg)
void processTradeItemAdd(Net::MessageIn &msg)
void processTradeItemAddResponse(Net::MessageIn &msg)
void processTradeResponse(Net::MessageIn &msg)
Net::TradeHandler * tradeHandler
PlayerRelationsManager playerRelations
static const unsigned int TRADE
std::string tradePartnerName
TradeWindow * tradeWindow