#include <exchangemanager.h>
|
bool | CheckExchange (uint32_t clientNum, bool checkRange=false) |
|
virtual void | DeleteObjectCallback (iDeleteNotificationObject *object) |
|
gemObject * | GetTargetGEM () |
|
virtual bool | HandleAccept (Client *client) |
| One of the client has accepted the exchange. More...
|
|
virtual void | HandleEnd (Client *client) |
| One of the clients has ended this exchange. More...
|
|
| PlayerToNPCExchange (Client *starter, gemObject *target, bool automaticExchange, int questID, ExchangeManager *manager) |
|
virtual | ~PlayerToNPCExchange () |
|
virtual bool | AddItem (Client *fromClient, INVENTORY_SLOT_NUMBER fromSlot, int stackCount, int toSlot) |
| Add a new item to the exchange. More...
|
|
virtual bool | AdjustMoney (Client *client, int moneyType, int newMoney) |
|
virtual bool | AdjustMoney (Client *client, const psMoney &money) |
|
bool | CheckRange (int clientNum, gemObject *ourActor, gemObject *otherActor) |
|
| Exchange (Client *starter, bool automaticExchange, ExchangeManager *manager) |
|
int | GetID () const |
|
virtual psMoney | GetOfferedMoney (Client *client) |
|
Client * | GetStarterClient () |
|
psItem * | GetStarterOffer (int slot) |
|
virtual psItem * | GetTargetOffer (int slot) |
|
virtual void | MoveItem (Client *client, int fromSlot, int stackCount, int toSlot) |
| Move an item from one slot to another in the exchange. More...
|
|
virtual bool | RemoveItem (Client *fromClient, int slot, int stackCount) |
| Removes an item from the exchange. More...
|
|
virtual | ~Exchange () |
|
virtual | ~iDeleteObjectCallback () |
|
Definition at line 384 of file exchangemanager.h.
virtual PlayerToNPCExchange::~PlayerToNPCExchange |
( |
| ) |
|
|
virtual |
bool PlayerToNPCExchange::CheckExchange |
( |
uint32_t |
clientNum, |
|
|
bool |
checkRange = false |
|
) |
| |
bool PlayerToNPCExchange::CheckXMLResponse |
( |
Client * |
client, |
|
|
psNPCDialog * |
dlg, |
|
|
csString |
trigger |
|
) |
| |
|
protected |
A check to se if a exchange trigger trigg any response from the npc.
- Parameters
-
client | The client |
dlg | The dialog of the selected NPC |
trigger | A XML string of the items exchanged. |
- Returns
- Return true if a trigger was run with sucess.
gemObject* PlayerToNPCExchange::GetTargetGEM |
( |
| ) |
|
virtual bool PlayerToNPCExchange::HandleAccept |
( |
Client * |
client | ) |
|
|
virtual |
One of the client has accepted the exchange.
If both clients have accepted the exchange will end and the items will be exchanged.
- Parameters
-
client | The client that has accepted the exchange. |
- Returns
- true If the exchange has ended.
Implements Exchange.
virtual void PlayerToNPCExchange::HandleEnd |
( |
Client * |
client | ) |
|
|
virtual |
One of the clients has ended this exchange.
This will close the exchange on both the clients without transfer of items.
- Parameters
-
client | The client that has ended the exchange. |
Implements Exchange.
int PlayerToNPCExchange::questID |
|
protected |
The documentation for this class was generated from the following file: