Planeshift
EconomyManager Class Reference

#include <economymanager.h>

Classes

struct  Economy
 

Public Member Functions

void AddTransaction (TransactionEntity *trans, bool sell, const char *type)
 
void ClearTransactions ()
 
 EconomyManager ()
 
ItemSupplyDemandInfoGetItemSupplyDemandInfo (unsigned int itemId)
 
unsigned int GetTotalTransactions ()
 
TransactionEntityGetTransaction (int id)
 
void HandleBuyMessage (MsgEntry *me, Client *client)
 
void HandleDropMessage (MsgEntry *me, Client *client)
 
void HandleLootMessage (MsgEntry *me, Client *client)
 
void HandlePickupMessage (MsgEntry *me, Client *client)
 
void HandleSellMessage (MsgEntry *me, Client *client)
 
void ScheduleDrop (csTicks ticks, bool loop)
 
 ~EconomyManager ()
 
- Public Member Functions inherited from MessageManager< EconomyManager >
void HandleMessage (MsgEntry *msg, Client *client)
 Transfers the message to the manager specific function. More...
 
void Subscribe (FunctionPointer fpt, msgtype type, uint32_t flags=0x01)
 Subscribes this manager to a specific message type with a custom callback. More...
 
bool Unsubscribe (msgtype type)
 Unsubscribes this manager from a specific message type. More...
 
bool Unsubscribe (FunctionPointer handler, msgtype type)
 Unsubscribes a specific handler from a specific message type. More...
 
bool UnsubscribeAll ()
 Unsubscribes this manager from all message types. More...
 
virtual ~MessageManager ()
 Unsubscribes all messages then destroys this object. More...
 
- Public Member Functions inherited from MessageManagerBase
csArray< csString > DecodeCommandArea (Client *client, csString target)
 Decodes an area: expression. More...
 
gemObjectFindObjectByString (const csString &str, gemActor *me) const
 Find the object we are referring to in str. More...
 
ClientFindPlayerClient (const char *name)
 Finds Client* of character with given name. More...
 
virtual bool Verify (MsgEntry *pMsg, unsigned int flags, Client *&client)
 

Public Attributes

Economy economy
 

Protected Attributes

csArray< csRef< TransactionEntity > > history
 
csHash< csRef< ItemSupplyDemandInfo > > supplyDemandInfo
 

Additional Inherited Members

- Public Types inherited from MessageManager< EconomyManager >
typedef void(EconomyManager::* FunctionPointer) (MsgEntry *, Client *)
 

Detailed Description

Definition at line 77 of file economymanager.h.

Constructor & Destructor Documentation

EconomyManager::EconomyManager ( )
EconomyManager::~EconomyManager ( )

Member Function Documentation

void EconomyManager::AddTransaction ( TransactionEntity trans,
bool  sell,
const char *  type 
)
void EconomyManager::ClearTransactions ( )
ItemSupplyDemandInfo* EconomyManager::GetItemSupplyDemandInfo ( unsigned int  itemId)
unsigned int EconomyManager::GetTotalTransactions ( )
TransactionEntity* EconomyManager::GetTransaction ( int  id)
void EconomyManager::HandleBuyMessage ( MsgEntry me,
Client client 
)
void EconomyManager::HandleDropMessage ( MsgEntry me,
Client client 
)
void EconomyManager::HandleLootMessage ( MsgEntry me,
Client client 
)
void EconomyManager::HandlePickupMessage ( MsgEntry me,
Client client 
)
void EconomyManager::HandleSellMessage ( MsgEntry me,
Client client 
)
void EconomyManager::ScheduleDrop ( csTicks  ticks,
bool  loop 
)

Member Data Documentation

Economy EconomyManager::economy

Definition at line 111 of file economymanager.h.

csArray< csRef<TransactionEntity> > EconomyManager::history
protected

Definition at line 114 of file economymanager.h.

csHash< csRef<ItemSupplyDemandInfo> > EconomyManager::supplyDemandInfo
protected

Definition at line 115 of file economymanager.h.


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