TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
WorldPackets::AuctionHouse::AuctionCommandResult Class Referencefinal

#include <AuctionHousePackets.h>

Public Member Functions

 AuctionCommandResult ()
 
void InitializeAuction (::AuctionEntry *auction)
 
WorldPacket constWrite () override
 
- Public Member Functions inherited from WorldPackets::ServerPacket
 ServerPacket (OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
 
void Read () overridefinal
 
void Clear ()
 
WorldPacket && Move ()
 
OpcodeServer GetOpcode () const
 
- Public Member Functions inherited from WorldPackets::Packet
 Packet (WorldPacket &&worldPacket)
 
virtual ~Packet ()=default
 
 Packet (Packet const &right)=delete
 
Packetoperator= (Packet const &right)=delete
 
WorldPacket constGetRawPacket () const
 
size_t GetSize () const
 
ConnectionType GetConnection () const
 

Public Attributes

uint32 AuctionItemID = 0
 the id of the auction that triggered this notification More...
 
uint32 Command = 0
 the type of action that triggered this notification. Possible values are AuctionAction More...
 
int32 ErrorCode = 0
 the error code that was generated when trying to perform the action. Possible values are AuctionError More...
 
uint64 Money = 0
 the amount of money that the player bid in copper More...
 
int32 BagResult = 0
 the bid error. Possible values are AuctionError More...
 
ObjectGuid Guid
 the GUID of the bidder for this auction. More...
 
uint64 MinIncrement = 0
 the sum of outbid is (1% of current bid) * 5, if the bid is too small, then this value is 1 copper. More...
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::AuctionHouse::AuctionCommandResult::AuctionCommandResult ( )
111  : ServerPacket(SMSG_AUCTION_COMMAND_RESULT, 4 + 4 + 4 + 8 + 4 + 8 + 8 + 8) { }
Definition: Opcodes.h:761
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49

Member Function Documentation

void WorldPackets::AuctionHouse::AuctionCommandResult::InitializeAuction ( ::AuctionEntry auction)
114 {
115  if (auction)
116  {
117  AuctionItemID = auction->Id;
118  Money = auction->bid == auction->buyout ? 0 : auction->bid;
119  MinIncrement = auction->bid == auction->buyout ? 0 : auction->GetAuctionOutBid();
120  Guid = ObjectGuid::Create<HighGuid::Player>(auction->bidder);
121  }
122 }
uint64 MinIncrement
the sum of outbid is (1% of current bid) * 5, if the bid is too small, then this value is 1 copper...
Definition: AuctionHousePackets.h:124
uint32 Id
Definition: AuctionHouseMgr.h:69
uint32 AuctionItemID
the id of the auction that triggered this notification
Definition: AuctionHousePackets.h:118
uint64 Money
the amount of money that the player bid in copper
Definition: AuctionHousePackets.h:121
uint32 bid
Definition: AuctionHouseMgr.h:76
ObjectGuid Guid
the GUID of the bidder for this auction.
Definition: AuctionHousePackets.h:123
ObjectGuid::LowType bidder
Definition: AuctionHouseMgr.h:79
uint32 buyout
Definition: AuctionHouseMgr.h:77
uint32 GetAuctionOutBid() const
the sum of outbid is (1% from current bid)*5, if bid is very small, it is 1c
Definition: AuctionHouseMgr.cpp:794

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

WorldPacket const * WorldPackets::AuctionHouse::AuctionCommandResult::Write ( )
overridevirtual

Implements WorldPackets::Packet.

125 {
130  _worldPacket << Guid;
133 
134  return &_worldPacket;
135 }
uint64_t uint64
Definition: g3dmath.h:170
uint64 MinIncrement
the sum of outbid is (1% of current bid) * 5, if the bid is too small, then this value is 1 copper...
Definition: AuctionHousePackets.h:124
WorldPacket _worldPacket
Definition: Packet.h:43
uint32 AuctionItemID
the id of the auction that triggered this notification
Definition: AuctionHousePackets.h:118
int32 ErrorCode
the error code that was generated when trying to perform the action. Possible values are AuctionError...
Definition: AuctionHousePackets.h:120
uint64 Money
the amount of money that the player bid in copper
Definition: AuctionHousePackets.h:121
ObjectGuid Guid
the GUID of the bidder for this auction.
Definition: AuctionHousePackets.h:123
uint32 Command
the type of action that triggered this notification. Possible values are AuctionAction ...
Definition: AuctionHousePackets.h:119
int32 BagResult
the bid error. Possible values are AuctionError
Definition: AuctionHousePackets.h:122
int32_t int32
Definition: g3dmath.h:167
uint32_t uint32
Definition: g3dmath.h:168

+ Here is the caller graph for this function:

Member Data Documentation

uint32 WorldPackets::AuctionHouse::AuctionCommandResult::AuctionItemID = 0

the id of the auction that triggered this notification

int32 WorldPackets::AuctionHouse::AuctionCommandResult::BagResult = 0

the bid error. Possible values are AuctionError

uint32 WorldPackets::AuctionHouse::AuctionCommandResult::Command = 0

the type of action that triggered this notification. Possible values are AuctionAction

int32 WorldPackets::AuctionHouse::AuctionCommandResult::ErrorCode = 0

the error code that was generated when trying to perform the action. Possible values are AuctionError

ObjectGuid WorldPackets::AuctionHouse::AuctionCommandResult::Guid

the GUID of the bidder for this auction.

uint64 WorldPackets::AuctionHouse::AuctionCommandResult::MinIncrement = 0

the sum of outbid is (1% of current bid) * 5, if the bid is too small, then this value is 1 copper.

uint64 WorldPackets::AuctionHouse::AuctionCommandResult::Money = 0

the amount of money that the player bid in copper


The documentation for this class was generated from the following files: