TrinityCore
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
AuctionEntry Struct Reference

#include <AuctionHouseMgr.h>

Public Member Functions

uint8 GetHouseId () const
 
uint32 GetAuctionCut () const
 
uint32 GetAuctionOutBid () const
 the sum of outbid is (1% from current bid)*5, if bid is very small, it is 1c More...
 
bool BuildAuctionInfo (WorldPacket &data, Item *sourceItem=nullptr) const
 
void DeleteFromDB (CharacterDatabaseTransaction trans) const
 
void SaveToDB (CharacterDatabaseTransaction trans) const
 
bool LoadFromDB (Field *fields)
 
std::string BuildAuctionMailSubject (MailAuctionAnswers response) const
 

Static Public Member Functions

static std::string BuildAuctionWonMailBody (ObjectGuid guid, uint32 bid, uint32 buyout)
 
static std::string BuildAuctionSoldMailBody (ObjectGuid guid, uint32 bid, uint32 buyout, uint32 deposit, uint32 consignment)
 
static std::string BuildAuctionInvoiceMailBody (ObjectGuid guid, uint32 bid, uint32 buyout, uint32 deposit, uint32 consignment, uint32 moneyDelay, uint32 eta)
 

Public Attributes

uint32 Id
 
uint8 houseId
 
ObjectGuid::LowType itemGUIDLow
 
uint32 itemEntry
 
uint32 itemCount
 
ObjectGuid::LowType owner
 
uint32 startbid
 
uint32 bid
 
uint32 buyout
 
time_t expire_time
 
ObjectGuid::LowType bidder
 
uint32 deposit
 
uint32 etime
 
std::unordered_set< ObjectGuidbidders
 
AuctionHouseEntry const * auctionHouseEntry
 
AuctionEntryFlag Flags
 

Detailed Description

Definition at line 81 of file AuctionHouseMgr.h.

Member Function Documentation

◆ BuildAuctionInfo()

bool AuctionEntry::BuildAuctionInfo ( WorldPacket data,
Item sourceItem = nullptr 
) const

Definition at line 842 of file AuctionHouseMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ BuildAuctionInvoiceMailBody()

std::string AuctionEntry::BuildAuctionInvoiceMailBody ( ObjectGuid  guid,
uint32  bid,
uint32  buyout,
uint32  deposit,
uint32  consignment,
uint32  moneyDelay,
uint32  eta 
)
static

Definition at line 968 of file AuctionHouseMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ BuildAuctionMailSubject()

std::string AuctionEntry::BuildAuctionMailSubject ( MailAuctionAnswers  response) const

Definition at line 952 of file AuctionHouseMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ BuildAuctionSoldMailBody()

std::string AuctionEntry::BuildAuctionSoldMailBody ( ObjectGuid  guid,
uint32  bid,
uint32  buyout,
uint32  deposit,
uint32  consignment 
)
static

Definition at line 963 of file AuctionHouseMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ BuildAuctionWonMailBody()

std::string AuctionEntry::BuildAuctionWonMailBody ( ObjectGuid  guid,
uint32  bid,
uint32  buyout 
)
static

Definition at line 958 of file AuctionHouseMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DeleteFromDB()

void AuctionEntry::DeleteFromDB ( CharacterDatabaseTransaction  trans) const

Definition at line 889 of file AuctionHouseMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetAuctionCut()

uint32 AuctionEntry::GetAuctionCut ( ) const

Definition at line 876 of file AuctionHouseMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetAuctionOutBid()

uint32 AuctionEntry::GetAuctionOutBid ( ) const

the sum of outbid is (1% from current bid)*5, if bid is very small, it is 1c

Definition at line 883 of file AuctionHouseMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetHouseId()

uint8 AuctionEntry::GetHouseId ( ) const
inline

Definition at line 101 of file AuctionHouseMgr.h.

+ Here is the caller graph for this function:

◆ LoadFromDB()

bool AuctionEntry::LoadFromDB ( Field fields)

Definition at line 919 of file AuctionHouseMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SaveToDB()

void AuctionEntry::SaveToDB ( CharacterDatabaseTransaction  trans) const

Definition at line 902 of file AuctionHouseMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ auctionHouseEntry

AuctionHouseEntry const* AuctionEntry::auctionHouseEntry

Definition at line 97 of file AuctionHouseMgr.h.

◆ bid

uint32 AuctionEntry::bid

Definition at line 90 of file AuctionHouseMgr.h.

◆ bidder

ObjectGuid::LowType AuctionEntry::bidder

Definition at line 93 of file AuctionHouseMgr.h.

◆ bidders

std::unordered_set<ObjectGuid> AuctionEntry::bidders

Definition at line 96 of file AuctionHouseMgr.h.

◆ buyout

uint32 AuctionEntry::buyout

Definition at line 91 of file AuctionHouseMgr.h.

◆ deposit

uint32 AuctionEntry::deposit

Definition at line 94 of file AuctionHouseMgr.h.

◆ etime

uint32 AuctionEntry::etime

Definition at line 95 of file AuctionHouseMgr.h.

◆ expire_time

time_t AuctionEntry::expire_time

Definition at line 92 of file AuctionHouseMgr.h.

◆ Flags

AuctionEntryFlag AuctionEntry::Flags

Definition at line 98 of file AuctionHouseMgr.h.

◆ houseId

uint8 AuctionEntry::houseId

Definition at line 84 of file AuctionHouseMgr.h.

◆ Id

uint32 AuctionEntry::Id

Definition at line 83 of file AuctionHouseMgr.h.

◆ itemCount

uint32 AuctionEntry::itemCount

Definition at line 87 of file AuctionHouseMgr.h.

◆ itemEntry

uint32 AuctionEntry::itemEntry

Definition at line 86 of file AuctionHouseMgr.h.

◆ itemGUIDLow

ObjectGuid::LowType AuctionEntry::itemGUIDLow

Definition at line 85 of file AuctionHouseMgr.h.

◆ owner

ObjectGuid::LowType AuctionEntry::owner

Definition at line 88 of file AuctionHouseMgr.h.

◆ startbid

uint32 AuctionEntry::startbid

Definition at line 89 of file AuctionHouseMgr.h.


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