#include <exchangemanager.h>
|
| virtual bool | AddItem (Client *fromClient, INVENTORY_SLOT_NUMBER fromSlot, int stackCount, int toSlot) |
| | Add an offering item from a client. More...
|
| |
| bool | AdjustMoney (Client *client, int moneyType, int newMoney) |
| |
| bool | AdjustMoney (Client *client, const psMoney &money) |
| |
| bool | CheckExchange (uint32_t clientNum, bool checkRange=false) |
| |
| virtual void | DeleteObjectCallback (iDeleteNotificationObject *object) |
| |
| psMoney | GetOfferedMoney (Client *client) |
| |
| virtual psItem * | GetTargetOffer (int slot) |
| |
| bool | HandleAccept (Client *client) |
| | One of the client has accepted the exchange. More...
|
| |
| void | HandleEnd (Client *client) |
| | One of the clients has ended this exchange. More...
|
| |
| | PlayerToPlayerExchange (Client *client, Client *target, ExchangeManager *manager) |
| |
| virtual bool | RemoveItem (Client *fromClient, int slot, int stackCount) |
| | Removes an item from the exchange. More...
|
| |
| void | SendExchangeStatusToBoth () |
| |
| virtual | ~PlayerToPlayerExchange () |
| |
| bool | CheckRange (int clientNum, gemObject *ourActor, gemObject *otherActor) |
| |
| | Exchange (Client *starter, bool automaticExchange, ExchangeManager *manager) |
| |
| int | GetID () const |
| |
| Client * | GetStarterClient () |
| |
| psItem * | GetStarterOffer (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 | ~Exchange () |
| |
| virtual | ~iDeleteObjectCallback () |
| |
Definition at line 318 of file exchangemanager.h.
| virtual PlayerToPlayerExchange::~PlayerToPlayerExchange |
( |
| ) |
|
|
virtual |
Add an offering item from a client.
- Parameters
-
| fromClient | The client that is offering the item. |
| fromSlot | The originating slot in the exchange window for the item moved. |
| stackCount | The number of items being moved. |
| toSlot | The slot that the item should go in. |
- Returns
- True if the item was added to the exchange correctly.
Reimplemented from Exchange.
| bool PlayerToPlayerExchange::AdjustMoney |
( |
Client * |
client, |
|
|
int |
moneyType, |
|
|
int |
newMoney |
|
) |
| |
|
virtual |
| bool PlayerToPlayerExchange::AdjustMoney |
( |
Client * |
client, |
|
|
const psMoney & |
money |
|
) |
| |
|
virtual |
| bool PlayerToPlayerExchange::CheckExchange |
( |
uint32_t |
clientNum, |
|
|
bool |
checkRange = false |
|
) |
| |
| psMoney PlayerToPlayerExchange::GetOfferedMoney |
( |
Client * |
client | ) |
|
|
virtual |
| virtual psItem* PlayerToPlayerExchange::GetTargetOffer |
( |
int |
slot | ) |
|
|
virtual |
| bool PlayerToPlayerExchange::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.
| void PlayerToPlayerExchange::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.
| virtual bool PlayerToPlayerExchange::RemoveItem |
( |
Client * |
fromClient, |
|
|
int |
slot, |
|
|
int |
stackCount |
|
) |
| |
|
virtual |
Removes an item from the exchange.
Sends out the network messages to update the clients' views.
- Parameters
-
| fromClient | The client that has removed an item. |
| slot | The slot that the items were removed from. |
| stackCount | The amount to remove from that slot. |
- Returns
- A new psItem for the items removed.
Reimplemented from Exchange.
| void PlayerToPlayerExchange::SendExchangeStatusToBoth |
( |
| ) |
|
| virtual void PlayerToPlayerExchange::SendRemoveItemMessage |
( |
Client * |
fromClient, |
|
|
int |
slot |
|
) |
| |
|
protectedvirtual |
The documentation for this class was generated from the following file: