#include <TradeData.h>
uint32 _spell
Definition: TradeData.h:81
bool _acceptProccess
Definition: TradeData.h:77
ObjectGuid _spellCastItem
Definition: TradeData.h:82
uint64 _money
Definition: TradeData.h:79
Player * _trader
Definition: TradeData.h:74
Player * _player
Definition: TradeData.h:73
uint32 _serverStateIndex
Definition: TradeData.h:87
uint32 _clientStateIndex
Definition: TradeData.h:86
bool _accepted
Definition: TradeData.h:76
uint32 TradeData::GetClientStateIndex |
( |
| ) |
const |
|
inline |
uint32 _clientStateIndex
Definition: TradeData.h:86
ObjectGuid _items[TRADE_SLOT_COUNT]
Definition: TradeData.h:84
Player * _player
Definition: TradeData.h:73
bool IsEmpty() const
Definition: ObjectGuid.h:242
uint64 TradeData::GetMoney |
( |
| ) |
const |
|
inline |
uint64 _money
Definition: TradeData.h:79
uint32 TradeData::GetServerStateIndex |
( |
| ) |
const |
|
inline |
uint32 _serverStateIndex
Definition: TradeData.h:87
uint32 TradeData::GetSpell |
( |
| ) |
const |
|
inline |
uint32 _spell
Definition: TradeData.h:81
Item * TradeData::GetSpellCastItem |
( |
| ) |
const |
ObjectGuid _spellCastItem
Definition: TradeData.h:82
Player * _player
Definition: TradeData.h:73
bool IsEmpty() const
Definition: ObjectGuid.h:242
Player* TradeData::GetTrader |
( |
| ) |
const |
|
inline |
Player * _trader
Definition: TradeData.h:74
TradeData * TradeData::GetTraderData |
( |
| ) |
const |
Player * _trader
Definition: TradeData.h:74
TradeSlots
Definition: TradeData.h:23
ObjectGuid _items[TRADE_SLOT_COUNT]
Definition: TradeData.h:84
Definition: TradeData.h:25
uint8_t uint8
Definition: Define.h:152
Definition: TradeData.h:28
ObjectGuid _items[TRADE_SLOT_COUNT]
Definition: TradeData.h:84
Definition: TradeData.h:25
uint8_t uint8
Definition: Define.h:152
bool TradeData::HasSpellCastItem |
( |
| ) |
const |
|
inline |
ObjectGuid _spellCastItem
Definition: TradeData.h:82
bool IsEmpty() const
Definition: ObjectGuid.h:242
bool TradeData::IsAccepted |
( |
| ) |
const |
|
inline |
bool _accepted
Definition: TradeData.h:76
bool TradeData::IsInAcceptProcess |
( |
| ) |
const |
|
inline |
bool _acceptProccess
Definition: TradeData.h:77
void TradeData::SetAccepted |
( |
bool |
state, |
|
|
bool |
forTrader = false |
|
) |
| |
141 _trader->GetSession()->SendTradeStatus(info);
143 _player->GetSession()->SendTradeStatus(info);
Definition: SharedDefines.h:4655
Player * _trader
Definition: TradeData.h:74
Definition: TradePackets.h:130
Player * _player
Definition: TradeData.h:73
::TradeStatus Status
Definition: TradePackets.h:137
bool _accepted
Definition: TradeData.h:76
void TradeData::SetInAcceptProcess |
( |
bool |
state | ) |
|
|
inline |
bool _acceptProccess
Definition: TradeData.h:77
61 if (
_items[slot] == itemGuid && !update)
void UpdateServerStateIndex()
Definition: TradeData.h:68
Definition: TradeData.h:27
TradeData * GetTraderData() const
Definition: TradeData.cpp:22
ObjectGuid _items[TRADE_SLOT_COUNT]
Definition: TradeData.h:84
void SetSpell(uint32 spell_id, Item *castItem=nullptr)
Definition: TradeData.cpp:81
ObjectGuid const & GetGUID() const
Definition: Object.h:105
Definition: ObjectGuid.h:189
void SetAccepted(bool state, bool forTrader=false)
Definition: TradeData.cpp:132
void Update(bool for_trader=true) const
Definition: TradeData.cpp:124
void TradeData::SetMoney |
( |
uint64 |
money | ) |
|
105 if (!
_player->HasEnoughMoney(money))
110 _player->GetSession()->SendTradeStatus(info);
void UpdateServerStateIndex()
Definition: TradeData.h:68
Definition: SharedDefines.h:4660
TradeData * GetTraderData() const
Definition: TradeData.cpp:22
uint64 _money
Definition: TradeData.h:79
Definition: TradePackets.h:130
Player * _player
Definition: TradeData.h:73
::TradeStatus Status
Definition: TradePackets.h:137
int32 BagResult
Definition: TradePackets.h:144
void SetAccepted(bool state, bool forTrader=false)
Definition: TradeData.cpp:132
void Update(bool for_trader=true) const
Definition: TradeData.cpp:124
void TradeData::SetSpell |
( |
uint32 |
spell_id, |
|
|
Item * |
castItem = nullptr |
|
) |
| |
static ObjectGuid const Empty
Definition: ObjectGuid.h:196
void UpdateServerStateIndex()
Definition: TradeData.h:68
uint32 _spell
Definition: TradeData.h:81
ObjectGuid _spellCastItem
Definition: TradeData.h:82
TradeData * GetTraderData() const
Definition: TradeData.cpp:22
ObjectGuid const & GetGUID() const
Definition: Object.h:105
Definition: ObjectGuid.h:189
void SetAccepted(bool state, bool forTrader=false)
Definition: TradeData.cpp:132
void Update(bool for_trader=true) const
Definition: TradeData.cpp:124
void TradeData::Update |
( |
bool |
for_trader = true | ) |
const |
|
private |
127 _trader->GetSession()->SendUpdateTrade(
true);
129 _player->GetSession()->SendUpdateTrade(
false);
Player * _trader
Definition: TradeData.h:74
Player * _player
Definition: TradeData.h:73
void TradeData::UpdateClientStateIndex |
( |
| ) |
|
|
inline |
uint32 _clientStateIndex
Definition: TradeData.h:86
void TradeData::UpdateServerStateIndex |
( |
| ) |
|
|
inline |
uint32 rand32()
Definition: Random.cpp:64
uint32 _serverStateIndex
Definition: TradeData.h:87
bool TradeData::_accepted |
|
private |
bool TradeData::_acceptProccess |
|
private |
uint32 TradeData::_clientStateIndex |
|
private |
uint32 TradeData::_serverStateIndex |
|
private |
The documentation for this class was generated from the following files: