|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.kernel.player.PlayerGroups.Group
Tracks a single group.
Constructor Summary | |
PlayerGroups.Group()
|
Method Summary | |
void |
addMember(java.lang.String name)
Adds a member. |
boolean |
contains(Player p)
Returns true if the group contains the specified player, either as a member or the leader. |
boolean |
containsMember(java.lang.String name)
Returns true if the specified player is a member of the group. |
java.lang.String |
getGroupName()
Returns the name of the group. |
java.lang.String |
getLeader()
|
java.util.Set |
getMembers()
Returns the people in the group. |
boolean |
isEmpty()
Returns true if there are no members in the group. |
boolean |
isLeader(Player p)
Returns true if this player is leading the group. |
void |
message(java.lang.String msg)
Sends a message to everyone in the group, including the group leader. |
void |
removeMember(java.lang.String name)
Removes a member from the group. |
void |
setGroupName(java.lang.String name)
Sets the name for the group. |
void |
setLeader(java.lang.String name)
Sets the leader for the group. |
java.lang.String |
toString()
Prints the members of the group. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PlayerGroups.Group()
Method Detail |
public java.util.Set getMembers()
public boolean isEmpty()
public boolean contains(Player p)
public void addMember(java.lang.String name)
name
- the player name, case-insensitivepublic void removeMember(java.lang.String name)
name
- the player name, case-insensitivepublic boolean containsMember(java.lang.String name)
name
- the player name, case-insensitivepublic void setLeader(java.lang.String name)
name
- the new leader, case-insensitivepublic java.lang.String getLeader()
public boolean isLeader(Player p)
public java.lang.String toString()
public void message(java.lang.String msg)
public void setGroupName(java.lang.String name)
public java.lang.String getGroupName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |