Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
AuctionHouseMgr.h File Reference
#include "Common.h"
#include "DatabaseEnv.h"
#include "DBCStructure.h"
#include "Platform/Singleton.h"
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  AuctionHouseMgr
class  AuctionHouseObject

Macros

#define AUCTION_SEARCH_DELAY   300
#define MAX_AUCTION_ITEMS   32
#define MIN_AUCTION_TIME   (12*HOUR)
#define sAuctionMgr   Skyfire::Singleton<AuctionHouseMgr, Skyfire::NullMutex>::instance()

Enumerations

enum  AuctionAction { AUCTION_SELL_ITEM = 0 , AUCTION_CANCEL = 1 , AUCTION_PLACE_BID = 2 }
enum  AuctionError {
  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 class  MailAuctionAnswer {
  AUCTION_OUTBIDDED = 0 , AUCTION_WON = 1 , AUCTION_SUCCESSFUL = 2 , AUCTION_EXPIRED = 3 ,
  AUCTION_CANCELLED_TO_BIDDER = 4 , AUCTION_CANCELED = 5 , AUCTION_SALE_PENDING = 6
}

Macro Definition Documentation

◆ AUCTION_SEARCH_DELAY

◆ MAX_AUCTION_ITEMS

#define MAX_AUCTION_ITEMS   32

Definition at line 19 of file AuctionHouseMgr.h.

Referenced by WorldSession::HandleAuctionSellItem().

◆ MIN_AUCTION_TIME

#define MIN_AUCTION_TIME   (12*HOUR)

Definition at line 18 of file AuctionHouseMgr.h.

Referenced by WorldSession::HandleAuctionSellItem().

◆ sAuctionMgr

Enumeration Type Documentation

◆ AuctionAction

Enumerator
AUCTION_SELL_ITEM 
AUCTION_CANCEL 
AUCTION_PLACE_BID 

Definition at line 35 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 22 of file AuctionHouseMgr.h.

◆ MailAuctionAnswer

enum class MailAuctionAnswer
strong
Enumerator
AUCTION_OUTBIDDED 
AUCTION_WON 
AUCTION_SUCCESSFUL 
AUCTION_EXPIRED 
AUCTION_CANCELLED_TO_BIDDER 
AUCTION_CANCELED 
AUCTION_SALE_PENDING 

Definition at line 42 of file AuctionHouseMgr.h.