Planeshift
ProgressionManager Class Reference

#include <progressionmanager.h>

Public Member Functions

void Broadcast (MsgEntry *me)
 
ProgressionScriptFindScript (char const *name)
 
csHash< csString, csString > & GetAffinityCategories ()
 
bool Initialize (iObjectRegistry *object_reg)
 Load progression script from db. More...
 
 ProgressionManager (ClientConnectionSet *ccs, CacheManager *cachemanager)
 
void QueueEvent (psGameEvent *event)
 
void SendMessage (MsgEntry *me)
 
void SendSkillList (Client *client, bool forceOpen, PSSKILL focus=PSSKILL_NONE, bool isTraining=false)
 Send the skill list to the client. More...
 
void StartTraining (Client *client, psCharacter *trainer)
 
virtual ~ProgressionManager ()
 
- Public Member Functions inherited from MessageManager< ProgressionManager >
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

int progressionMaxSkillValue
 
int progressionMaxStatValue
 
bool progressionRequiresTraining
 

Protected Member Functions

void AllocateKillDamage (gemActor *deadActor, int exp)
 
void HandleDeathEvent (MsgEntry *me, Client *notused)
 
void HandleSkill (MsgEntry *me, Client *client)
 
void HandleZPointEvent (MsgEntry *me, Client *client)
 

Protected Attributes

csHash< csString, csString > affinitycategories
 
CacheManagercacheManager
 
MathScriptcalc_dynamic_experience
 Math script used to calculate the dynamic experience. More...
 
ClientConnectionSetclients
 

Additional Inherited Members

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

Detailed Description

Definition at line 48 of file progressionmanager.h.

Constructor & Destructor Documentation

ProgressionManager::ProgressionManager ( ClientConnectionSet ccs,
CacheManager cachemanager 
)
virtual ProgressionManager::~ProgressionManager ( )
virtual

Member Function Documentation

void ProgressionManager::AllocateKillDamage ( gemActor deadActor,
int  exp 
)
protected
void ProgressionManager::Broadcast ( MsgEntry me)
ProgressionScript* ProgressionManager::FindScript ( char const *  name)
csHash<csString, csString>& ProgressionManager::GetAffinityCategories ( )
inline

Definition at line 68 of file progressionmanager.h.

void ProgressionManager::HandleDeathEvent ( MsgEntry me,
Client notused 
)
protected
void ProgressionManager::HandleSkill ( MsgEntry me,
Client client 
)
protected
void ProgressionManager::HandleZPointEvent ( MsgEntry me,
Client client 
)
protected
bool ProgressionManager::Initialize ( iObjectRegistry *  object_reg)

Load progression script from db.

void ProgressionManager::QueueEvent ( psGameEvent event)
void ProgressionManager::SendMessage ( MsgEntry me)
void ProgressionManager::SendSkillList ( Client client,
bool  forceOpen,
PSSKILL  focus = PSSKILL_NONE,
bool  isTraining = false 
)

Send the skill list to the client.

Parameters
clientThe client that the message is for.
forceOpenIf true it will force open the skills screen on the client.
focusThe skill in focus.
isTrainingIs training.
void ProgressionManager::StartTraining ( Client client,
psCharacter trainer 
)

Member Data Documentation

csHash<csString, csString> ProgressionManager::affinitycategories
protected

Definition at line 97 of file progressionmanager.h.

CacheManager* ProgressionManager::cacheManager
protected

Definition at line 100 of file progressionmanager.h.

MathScript* ProgressionManager::calc_dynamic_experience
protected

Math script used to calculate the dynamic experience.

Definition at line 99 of file progressionmanager.h.

ClientConnectionSet* ProgressionManager::clients
protected

Definition at line 98 of file progressionmanager.h.

int ProgressionManager::progressionMaxSkillValue

Definition at line 86 of file progressionmanager.h.

int ProgressionManager::progressionMaxStatValue

Definition at line 87 of file progressionmanager.h.

bool ProgressionManager::progressionRequiresTraining

Definition at line 85 of file progressionmanager.h.


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