![]() |
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 |
| uint32 | GetMoney () const |
| void | SetMoney (uint32 money) |
| bool | IsAccepted () const |
| void | SetAccepted (bool state, bool forTrader=false) |
| bool | IsInAcceptProcess () const |
| void | SetInAcceptProcess (bool state) |
Private Member Functions | |
| void | Update (bool for_trader=true) const |
Private Attributes | |
| Player * | _player |
| Player * | _trader |
| bool | _accepted |
| bool | _acceptProccess |
| uint32 | _money |
| uint32 | _spell |
| ObjectGuid | _spellCastItem |
| ObjectGuid | _items [TRADE_SLOT_COUNT] |
Definition at line 34 of file TradeData.h.
Definition at line 37 of file TradeData.h.
| Item * TradeData::GetItem | ( | TradeSlots | slot | ) | const |
Definition at line 28 of file TradeData.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
| Item * TradeData::GetSpellCastItem | ( | ) | const |
Definition at line 51 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 23 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 42 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 127 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 56 of file TradeData.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void TradeData::SetMoney | ( | uint32 | money | ) |
Definition at line 97 of file TradeData.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 80 of file TradeData.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 119 of file TradeData.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 70 of file TradeData.h.
|
private |
Definition at line 71 of file TradeData.h.
|
private |
Definition at line 78 of file TradeData.h.
|
private |
Definition at line 73 of file TradeData.h.
|
private |
Definition at line 67 of file TradeData.h.
|
private |
Definition at line 75 of file TradeData.h.
|
private |
Definition at line 76 of file TradeData.h.
|
private |
Definition at line 68 of file TradeData.h.