Planeshift
Public Member Functions | Static Public Member Functions | Protected Attributes

ExchangeManager Class Reference

#include <exchangemanager.h>

List of all members.

Public Member Functions

void AddExchange (Exchange *exchange)
 Adds given exchange to the exchange manager's exchanges list.
void DeleteExchange (Exchange *exchange)
 Removes given exchange from the exchange manger's exchanges list.
 ExchangeManager (ClientConnectionSet *pCCS)
ExchangeGetExchange (int id)
 Utility function to handle exchange objects.
void HandleAutoGive (MsgEntry *me, Client *client)
void HandleExchangeAccept (MsgEntry *me, Client *client)
void HandleExchangeEnd (MsgEntry *me, Client *client)
void HandleExchangeRequest (MsgEntry *me, Client *client)
void StartExchange (Client *client, bool withPlayer, bool automaticExchange=false, int questID=-1)
virtual ~ExchangeManager ()

Static Public Member Functions

static bool ExchangeCheck (Client *client, gemObject *target, csString *errorMessage=NULL)

Protected Attributes

ClientConnectionSetclients
csPDelArray< Exchangeexchanges

Detailed Description

Definition at line 414 of file exchangemanager.h.


Constructor & Destructor Documentation

ExchangeManager::ExchangeManager ( ClientConnectionSet pCCS)
virtual ExchangeManager::~ExchangeManager ( ) [virtual]

Member Function Documentation

void ExchangeManager::AddExchange ( Exchange exchange) [inline]

Adds given exchange to the exchange manager's exchanges list.

Definition at line 434 of file exchangemanager.h.

void ExchangeManager::DeleteExchange ( Exchange exchange)

Removes given exchange from the exchange manger's exchanges list.

static bool ExchangeManager::ExchangeCheck ( Client client,
gemObject target,
csString *  errorMessage = NULL 
) [static]
Exchange* ExchangeManager::GetExchange ( int  id)

Utility function to handle exchange objects.

void ExchangeManager::HandleAutoGive ( MsgEntry me,
Client client 
)
void ExchangeManager::HandleExchangeAccept ( MsgEntry me,
Client client 
)
void ExchangeManager::HandleExchangeEnd ( MsgEntry me,
Client client 
)
void ExchangeManager::HandleExchangeRequest ( MsgEntry me,
Client client 
)
void ExchangeManager::StartExchange ( Client client,
bool  withPlayer,
bool  automaticExchange = false,
int  questID = -1 
)

Member Data Documentation

Definition at line 444 of file exchangemanager.h.

csPDelArray<Exchange> ExchangeManager::exchanges [protected]

Definition at line 446 of file exchangemanager.h.


The documentation for this class was generated from the following file: