TrinityCore
Loading...
Searching...
No Matches
AuctionHouseMgr.h File Reference
#include "Define.h"
#include "DatabaseEnvFwd.h"
#include "ObjectGuid.h"
#include <map>
#include <set>
#include <unordered_map>
+ Include dependency graph for AuctionHouseMgr.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  AuctionEntry
 
class  AuctionHouseObject
 
class  AuctionHouseMgr
 

Macros

#define MIN_AUCTION_TIME   (12*HOUR)
 
#define MAX_AUCTION_ITEMS   160
 
#define MAX_GETALL_RETURN   55000
 
#define sAuctionMgr   AuctionHouseMgr::instance()
 

Enumerations

enum  AuctionError : uint8 {
  ERR_AUCTION_OK = 0 , ERR_AUCTION_INVENTORY = 1 , ERR_AUCTION_DATABASE_ERROR = 2 , ERR_AUCTION_NOT_ENOUGHT_MONEY = 3 ,
  ERR_AUCTION_ITEM_NOT_FOUND = 4 , ERR_AUCTION_HIGHER_BID = 5 , ERR_AUCTION_BID_INCREMENT = 7 , ERR_AUCTION_BID_OWN = 10 ,
  ERR_AUCTION_RESTRICTED_ACCOUNT = 13
}
 
enum  AuctionAction : uint8 { AUCTION_SELL_ITEM = 0 , AUCTION_CANCEL = 1 , AUCTION_PLACE_BID = 2 }
 
enum  MailAuctionAnswers {
  AUCTION_OUTBIDDED = 0 , AUCTION_WON = 1 , AUCTION_SUCCESSFUL = 2 , AUCTION_EXPIRED = 3 ,
  AUCTION_CANCELLED_TO_BIDDER = 4 , AUCTION_CANCELED = 5 , AUCTION_SALE_PENDING = 6
}
 
enum  AuctionHouses { AUCTIONHOUSE_ALLIANCE = 2 , AUCTIONHOUSE_HORDE = 6 , AUCTIONHOUSE_NEUTRAL = 7 }
 
enum  AuctionEntryFlag : uint8 { AUCTION_ENTRY_FLAG_NONE = 0x0 , AUCTION_ENTRY_FLAG_GM_LOG_BUYER = 0x1 }
 

Macro Definition Documentation

◆ MAX_AUCTION_ITEMS

#define MAX_AUCTION_ITEMS   160

Definition at line 34 of file AuctionHouseMgr.h.

◆ MAX_GETALL_RETURN

#define MAX_GETALL_RETURN   55000

Definition at line 35 of file AuctionHouseMgr.h.

◆ MIN_AUCTION_TIME

#define MIN_AUCTION_TIME   (12*HOUR)

Definition at line 33 of file AuctionHouseMgr.h.

◆ sAuctionMgr

#define sAuctionMgr   AuctionHouseMgr::instance()

Definition at line 221 of file AuctionHouseMgr.h.

Enumeration Type Documentation

◆ AuctionAction

Enumerator
AUCTION_SELL_ITEM 
AUCTION_CANCEL 
AUCTION_PLACE_BID 

Definition at line 50 of file AuctionHouseMgr.h.

◆ AuctionEntryFlag

Enumerator
AUCTION_ENTRY_FLAG_NONE 
AUCTION_ENTRY_FLAG_GM_LOG_BUYER 

Definition at line 75 of file AuctionHouseMgr.h.

◆ AuctionError

Enumerator
ERR_AUCTION_OK 
ERR_AUCTION_INVENTORY 
ERR_AUCTION_DATABASE_ERROR 
ERR_AUCTION_NOT_ENOUGHT_MONEY 
ERR_AUCTION_ITEM_NOT_FOUND 
ERR_AUCTION_HIGHER_BID 
ERR_AUCTION_BID_INCREMENT 
ERR_AUCTION_BID_OWN 
ERR_AUCTION_RESTRICTED_ACCOUNT 

Definition at line 37 of file AuctionHouseMgr.h.

◆ AuctionHouses

Enumerator
AUCTIONHOUSE_ALLIANCE 
AUCTIONHOUSE_HORDE 
AUCTIONHOUSE_NEUTRAL 

Definition at line 68 of file AuctionHouseMgr.h.

◆ MailAuctionAnswers

Enumerator
AUCTION_OUTBIDDED 
AUCTION_WON 
AUCTION_SUCCESSFUL 
AUCTION_EXPIRED 
AUCTION_CANCELLED_TO_BIDDER 
AUCTION_CANCELED 
AUCTION_SALE_PENDING 

Definition at line 57 of file AuctionHouseMgr.h.