|
Planeshift
|
An existing group. More...
#include <playergroup.h>
Public Member Functions | |
| void | Add (gemActor *new_member) |
| Add a new client to the existing group. More... | |
| bool | AddDuelGroup (PlayerGroup *OtherGroup) |
| Add a new group to the list of those in duel with this. More... | |
| void | Broadcast (MsgEntry *me) |
| Send a message to all members in this group. More... | |
| void | BroadcastMemberList () |
| void | Disband () |
| void | DuelYield () |
| Yield to all groups in duel with this. More... | |
| int | GetGroupID () |
| Return the ID of this group. More... | |
| gemActor * | GetLeader () |
| gemActor * | GetMember (size_t which) |
| size_t | GetMemberCount () |
| bool | HasMember (gemActor *member, bool IncludePets=false) |
| bool | IsEmpty () |
| bool | IsInDuel () |
| Checks if the group is in duel with any other group. More... | |
| bool | IsInDuelWith (PlayerGroup *OtherGroup) |
| Check if we are in duel with another group. More... | |
| bool | IsLeader (gemActor *client) |
| void | ListMembers (gemActor *client) |
| void | NotifyDuelYield (PlayerGroup *OtherGroup) |
| Notify the group of the yielding of another group. More... | |
| int | operator< (PlayerGroup &other) |
| int | operator== (PlayerGroup &other) |
| PlayerGroup (GroupManager *mgr, gemActor *leader) | |
| void | Remove (gemActor *member) |
| Remove a client from this group. More... | |
| void | RemoveDuelGroup (PlayerGroup *OtherGroup) |
| Remove a group from the list of those in duel with this. More... | |
| void | SetLeader (gemActor *new_leader) |
| Change the leader of this group. More... | |
| ~PlayerGroup () | |
An existing group.
This defines a 'group' of players on the server.
Definition at line 36 of file playergroup.h.
| PlayerGroup::PlayerGroup | ( | GroupManager * | mgr, |
| gemActor * | leader | ||
| ) |
| PlayerGroup::~PlayerGroup | ( | ) |
| void PlayerGroup::Add | ( | gemActor * | new_member | ) |
Add a new client to the existing group.
| bool PlayerGroup::AddDuelGroup | ( | PlayerGroup * | OtherGroup | ) |
Add a new group to the list of those in duel with this.
| OtherGroup | A pointer to the PlayerGroup we are adding in the duel groups. |
| void PlayerGroup::Broadcast | ( | MsgEntry * | me | ) |
Send a message to all members in this group.
| void PlayerGroup::BroadcastMemberList | ( | ) |
| void PlayerGroup::Disband | ( | ) |
| void PlayerGroup::DuelYield | ( | ) |
Yield to all groups in duel with this.
|
inline |
Return the ID of this group.
Definition at line 57 of file playergroup.h.
| gemActor* PlayerGroup::GetLeader | ( | ) |
|
inline |
Definition at line 120 of file playergroup.h.
|
inline |
Definition at line 116 of file playergroup.h.
| bool PlayerGroup::HasMember | ( | gemActor * | member, |
| bool | IncludePets = false |
||
| ) |
| bool PlayerGroup::IsEmpty | ( | ) |
| bool PlayerGroup::IsInDuel | ( | ) |
Checks if the group is in duel with any other group.
Useful to quickly check if the group might be dangerous to who joins.
| bool PlayerGroup::IsInDuelWith | ( | PlayerGroup * | OtherGroup | ) |
Check if we are in duel with another group.
| OtherGroup | A pointer to the PlayerGroup we are checking if it's in duel with this group. |
| bool PlayerGroup::IsLeader | ( | gemActor * | client | ) |
| void PlayerGroup::ListMembers | ( | gemActor * | client | ) |
| void PlayerGroup::NotifyDuelYield | ( | PlayerGroup * | OtherGroup | ) |
Notify the group of the yielding of another group.
| OtherGroup | A pointer to the PlayerGroup which is yielding to this group. |
|
inline |
Definition at line 131 of file playergroup.h.
|
inline |
Definition at line 126 of file playergroup.h.
| void PlayerGroup::Remove | ( | gemActor * | member | ) |
Remove a client from this group.
| void PlayerGroup::RemoveDuelGroup | ( | PlayerGroup * | OtherGroup | ) |
Remove a group from the list of those in duel with this.
| OtherGroup | A pointer to the PlayerGroup we are removing from the duel groups. |
| void PlayerGroup::SetLeader | ( | gemActor * | new_leader | ) |
Change the leader of this group.