![]() |
TrinityCore
|
#include <TradeData.h>
Public Member Functions | |
| TradeData (Player *player, Player *trader) | |
| Player * | GetTrader () const |
| TradeData * | GetTraderData () const |
| Item * | GetItem (TradeSlots slot) const |
| bool | HasItem (ObjectGuid itemGuid) const |
| TradeSlots | GetTradeSlotForItem (ObjectGuid itemGuid) const |
| void | SetItem (TradeSlots slot, Item *item, bool update=false) |
| uint32 | GetSpell () const |
| void | SetSpell (uint32 spell_id, Item *castItem=nullptr) |
| Item * | GetSpellCastItem () const |
| bool | HasSpellCastItem () const |
| uint64 | GetMoney () const |
| void | SetMoney (uint64 money) |
| bool | IsAccepted () const |
| void | SetAccepted (bool state, bool forTrader=false) |
| bool | IsInAcceptProcess () const |
| void | SetInAcceptProcess (bool state) |
| uint32 | GetClientStateIndex () const |
| void | UpdateClientStateIndex () |
| uint32 | GetServerStateIndex () const |
| void | UpdateServerStateIndex () |
Private Member Functions | |
| void | Update (bool for_trader=true) const |
Private Attributes | |
| Player * | _player |
| Player * | _trader |
| bool | _accepted |
| bool | _acceptProccess |
| uint64 | _money |
| uint32 | _spell |
| ObjectGuid | _spellCastItem |
| ObjectGuid | _items [TRADE_SLOT_COUNT] |
| uint32 | _clientStateIndex |
| uint32 | _serverStateIndex |
Definition at line 34 of file TradeData.h.
Definition at line 37 of file TradeData.h.
|
inline |
| Item * TradeData::GetItem | ( | TradeSlots | slot | ) | const |
Definition at line 30 of file TradeData.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |
| Item * TradeData::GetSpellCastItem | ( | ) | const |
Definition at line 53 of file TradeData.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
| TradeData * TradeData::GetTraderData | ( | ) | const |
Definition at line 25 of file TradeData.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| TradeSlots TradeData::GetTradeSlotForItem | ( | ObjectGuid | itemGuid | ) | const |
Definition at line 44 of file TradeData.cpp.
| bool TradeData::HasItem | ( | ObjectGuid | itemGuid | ) | const |
|
inline |
|
inline |
|
inline |
Definition at line 61 of file TradeData.h.
| void TradeData::SetAccepted | ( | bool | state, |
| bool | forTrader = false |
||
| ) |
Definition at line 135 of file TradeData.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
| void TradeData::SetItem | ( | TradeSlots | slot, |
| Item * | item, | ||
| bool | update = false |
||
| ) |
Definition at line 58 of file TradeData.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void TradeData::SetMoney | ( | uint64 | money | ) |
Definition at line 103 of file TradeData.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 84 of file TradeData.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 127 of file TradeData.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
| void TradeData::UpdateServerStateIndex | ( | ) |
Definition at line 150 of file TradeData.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 76 of file TradeData.h.
|
private |
Definition at line 77 of file TradeData.h.
|
private |
Definition at line 86 of file TradeData.h.
|
private |
Definition at line 84 of file TradeData.h.
|
private |
Definition at line 79 of file TradeData.h.
|
private |
Definition at line 73 of file TradeData.h.
|
private |
Definition at line 87 of file TradeData.h.
|
private |
Definition at line 81 of file TradeData.h.
|
private |
Definition at line 82 of file TradeData.h.
|
private |
Definition at line 74 of file TradeData.h.