#include <exchangemanager.h>
List of all members.
Detailed Description
Definition at line 384 of file exchangemanager.h.
Constructor & Destructor Documentation
virtual PlayerToNPCExchange::~PlayerToNPCExchange |
( |
| ) |
[virtual] |
Member Function Documentation
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.
Member Data Documentation
The documentation for this class was generated from the following file: