Planeshift
|
Main PlayerGroup Manager that holds all the groups. More...
#include <groupmanager.h>
Public Member Functions | |
GroupManager (ClientConnectionSet *pCCS, ChatManager *chat) | |
void | HandleChallengeGroup (PendingGroupChallenge *invite) |
Handles the answer to the request of challenge. More... | |
void | HandleJoinGroup (PendingGroupInvite *invite) |
virtual | ~GroupManager () |
![]() | |
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... | |
![]() | |
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) |
Protected Member Functions | |
bool | AddGroupChallenge (PlayerGroup *ChallengerGroup, PlayerGroup *ChallengedGroup) |
Makes two group be in challenge each other. More... | |
bool | AddPlayerToGroup (PlayerGroup *group, gemActor *client) |
void | Challenge (psGroupCmdMessage &msg, Client *Challenger) |
Handles /groupchallenge and challenges another group after checking all requirements are in order. More... | |
void | Disband (psGroupCmdMessage &msg, gemActor *client) |
PlayerGroup * | FindGroup (int id) |
void | GroupChat (gemActor *client, const char *fmt,...) |
void | HandleGroupCommand (MsgEntry *pMsg, Client *client) |
void | Invite (psGroupCmdMessage &msg, Client *client) |
void | Leader (psGroupCmdMessage &msg, gemActor *client) |
void | Leave (psGroupCmdMessage &msg, gemActor *client) |
void | ListMembers (psGroupCmdMessage &msg, gemActor *client) |
csPtr< PlayerGroup > | NewGroup (gemActor *leader) |
void | Remove (PlayerGroup *group) |
void | RemovePlayerFromGroup (psGroupCmdMessage &msg, gemActor *client) |
void | SendGroup (gemActor *client) |
void | SendLeave (gemActor *client) |
void | Yield (psGroupCmdMessage &msg, Client *Yielder) |
Handles /groupyield and yields to all the group in duel with the one requesting it after checking all requirements are in order. More... | |
Protected Attributes | |
ChatManager * | chatserver |
ClientConnectionSet * | clients |
csRef< EventManager > | eventmanager |
csRefArray< PlayerGroup > | groups |
Additional Inherited Members | |
![]() | |
typedef void(GroupManager::* | FunctionPointer) (MsgEntry *, Client *) |
Main PlayerGroup Manager that holds all the groups.
This maintains all the groups on the servers and is responsible for all the group functions.
Definition at line 56 of file groupmanager.h.
GroupManager::GroupManager | ( | ClientConnectionSet * | pCCS, |
ChatManager * | chat | ||
) |
|
virtual |
|
protected |
Makes two group be in challenge each other.
ChallengerGroup | the group which is starting the challenge. |
ChallengedGroup | the group which is being challenged. |
|
protected |
|
protected |
Handles /groupchallenge and challenges another group after checking all requirements are in order.
msg | the prepared message from the network. |
Challenger | A pointer to the client which issued this command. |
|
protected |
|
protected |
|
protected |
void GroupManager::HandleChallengeGroup | ( | PendingGroupChallenge * | invite | ) |
Handles the answer to the request of challenge.
invite | The class which handled the question to the challenged client. |
void GroupManager::HandleJoinGroup | ( | PendingGroupInvite * | invite | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Handles /groupyield and yields to all the group in duel with the one requesting it after checking all requirements are in order.
msg | the prepared message from the network. |
Yielder | A pointer to the client which issued this command. |
|
protected |
Definition at line 115 of file groupmanager.h.
|
protected |
Definition at line 116 of file groupmanager.h.
|
protected |
Definition at line 117 of file groupmanager.h.
|
protected |
Definition at line 118 of file groupmanager.h.