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. | |
void | HandleJoinGroup (PendingGroupInvite *invite) |
virtual | ~GroupManager () |
Protected Member Functions | |
bool | AddGroupChallenge (PlayerGroup *ChallengerGroup, PlayerGroup *ChallengedGroup) |
Makes two group be in challenge each other. | |
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. | |
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. | |
Protected Attributes | |
ChatManager * | chatserver |
ClientConnectionSet * | clients |
csRef< EventManager > | eventmanager |
csRefArray< PlayerGroup > | groups |
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 GroupManager::~GroupManager | ( | ) | [virtual] |
bool GroupManager::AddGroupChallenge | ( | PlayerGroup * | ChallengerGroup, |
PlayerGroup * | ChallengedGroup | ||
) | [protected] |
Makes two group be in challenge each other.
ChallengerGroup | the group which is starting the challenge. |
ChallengedGroup | the group which is being challenged. |
bool GroupManager::AddPlayerToGroup | ( | PlayerGroup * | group, |
gemActor * | client | ||
) | [protected] |
void GroupManager::Challenge | ( | psGroupCmdMessage & | msg, |
Client * | Challenger | ||
) | [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. |
void GroupManager::Disband | ( | psGroupCmdMessage & | msg, |
gemActor * | client | ||
) | [protected] |
PlayerGroup* GroupManager::FindGroup | ( | int | id | ) | [protected] |
void GroupManager::GroupChat | ( | gemActor * | client, |
const char * | fmt, | ||
... | |||
) | [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 | ) |
void GroupManager::Invite | ( | psGroupCmdMessage & | msg, |
Client * | client | ||
) | [protected] |
void GroupManager::Leader | ( | psGroupCmdMessage & | msg, |
gemActor * | client | ||
) | [protected] |
void GroupManager::Leave | ( | psGroupCmdMessage & | msg, |
gemActor * | client | ||
) | [protected] |
void GroupManager::ListMembers | ( | psGroupCmdMessage & | msg, |
gemActor * | client | ||
) | [protected] |
csPtr<PlayerGroup> GroupManager::NewGroup | ( | gemActor * | leader | ) | [protected] |
void GroupManager::Remove | ( | PlayerGroup * | group | ) | [protected] |
void GroupManager::RemovePlayerFromGroup | ( | psGroupCmdMessage & | msg, |
gemActor * | client | ||
) | [protected] |
void GroupManager::SendGroup | ( | gemActor * | client | ) | [protected] |
void GroupManager::SendLeave | ( | gemActor * | client | ) | [protected] |
void GroupManager::Yield | ( | psGroupCmdMessage & | msg, |
Client * | Yielder | ||
) | [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. |
ChatManager* GroupManager::chatserver [protected] |
Definition at line 115 of file groupmanager.h.
ClientConnectionSet* GroupManager::clients [protected] |
Definition at line 116 of file groupmanager.h.
csRef<EventManager> GroupManager::eventmanager [protected] |
Definition at line 117 of file groupmanager.h.
csRefArray<PlayerGroup> GroupManager::groups [protected] |
Definition at line 118 of file groupmanager.h.