|
Planeshift
|
#include <progressionmanager.h>
Public Member Functions | |
| void | Broadcast (MsgEntry *me) |
| ProgressionScript * | FindScript (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... | |
| gemObject * | FindObjectByString (const csString &str, gemActor *me) const |
| Find the object we are referring to in str. More... | |
| Client * | FindPlayerClient (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 |
| CacheManager * | cacheManager |
| MathScript * | calc_dynamic_experience |
| Math script used to calculate the dynamic experience. More... | |
| ClientConnectionSet * | clients |
Additional Inherited Members | |
Public Types inherited from MessageManager< ProgressionManager > | |
| typedef void(ProgressionManager::* | FunctionPointer) (MsgEntry *, Client *) |
Definition at line 48 of file progressionmanager.h.
| ProgressionManager::ProgressionManager | ( | ClientConnectionSet * | ccs, |
| CacheManager * | cachemanager | ||
| ) |
|
virtual |
| void ProgressionManager::Broadcast | ( | MsgEntry * | me | ) |
| ProgressionScript* ProgressionManager::FindScript | ( | char const * | name | ) |
|
inline |
Definition at line 68 of file progressionmanager.h.
| 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.
| client | The client that the message is for. |
| forceOpen | If true it will force open the skills screen on the client. |
| focus | The skill in focus. |
| isTraining | Is training. |
| void ProgressionManager::StartTraining | ( | Client * | client, |
| psCharacter * | trainer | ||
| ) |
|
protected |
Definition at line 97 of file progressionmanager.h.
|
protected |
Definition at line 100 of file progressionmanager.h.
|
protected |
Math script used to calculate the dynamic experience.
Definition at line 99 of file progressionmanager.h.
|
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.