38 _player(player), _trader(trader), _accepted(
false), _acceptProccess(
false),
39 _money(0), _spell(0), _spellCastItem(), _clientStateIndex(1), _serverStateIndex(1) { }
50 void SetSpell(
uint32 spell_id,
Item* castItem =
nullptr);
52 Item* GetSpellCastItem()
const;
56 void SetMoney(
uint64 money);
59 void SetAccepted(
bool state,
bool forTrader =
false);
71 void Update(
bool for_trader =
true)
const;
90 #endif // TradeData_h__
void UpdateServerStateIndex()
Definition: TradeData.h:68
uint32 _spell
Definition: TradeData.h:81
void SetInAcceptProcess(bool state)
Definition: TradeData.h:62
bool _acceptProccess
Definition: TradeData.h:77
#define false
Definition: CascPort.h:18
ObjectGuid _spellCastItem
Definition: TradeData.h:82
bool IsInAcceptProcess() const
Definition: TradeData.h:61
uint32 GetSpell() const
Definition: TradeData.h:49
Definition: TradeData.h:34
TradeSlots
Definition: TradeData.h:23
Definition: TradeData.h:27
uint32 GetClientStateIndex() const
Definition: TradeData.h:64
uint32_t uint32
Definition: Define.h:150
uint64_t uint64
Definition: Define.h:149
uint64 _money
Definition: TradeData.h:79
Player * GetTrader() const
Definition: TradeData.h:41
Player * _trader
Definition: TradeData.h:74
TradeData(Player *player, Player *trader)
Definition: TradeData.h:37
Definition: TradeData.h:25
#define TC_GAME_API
Definition: Define.h:134
uint32 GetServerStateIndex() const
Definition: TradeData.h:67
Player * _player
Definition: TradeData.h:73
uint32 rand32()
Definition: Random.cpp:64
uint32 _serverStateIndex
Definition: TradeData.h:87
bool IsAccepted() const
Definition: TradeData.h:58
uint32 _clientStateIndex
Definition: TradeData.h:86
bool HasSpellCastItem() const
Definition: TradeData.h:53
Definition: ObjectGuid.h:189
bool _accepted
Definition: TradeData.h:76
Definition: TradeData.h:26
void UpdateClientStateIndex()
Definition: TradeData.h:65
uint64 GetMoney() const
Definition: TradeData.h:55
void Update(uint32 diff)
Definition: WeatherMgr.cpp:150
Definition: TradeData.h:28