public class GroupOfPlayers
extends java.lang.Object
PlayerGroup
,
cvs GroupOfPlayers.javaConstructor and Description |
---|
GroupOfPlayers()
Default empty constructor
|
GroupOfPlayers(java.lang.String groupName,
java.awt.Color color)
Convienence constructor to set some fields
|
Modifier and Type | Method and Description |
---|---|
void |
addPlayer(int playerId)
Add this player to this group.
|
java.awt.Color |
getColor()
Get the color to display group members in.
|
long |
getColorStore()
Get the color in a database friendly format.
|
java.lang.String |
getGroupName()
Get the name of this group.
|
int |
getId()
Return the unique id for this GroupOfPlayers
|
java.util.List<PlayerGroup> |
getPlayerGroups()
Get the PlayserGroup list, the database likes to do this for saving
|
java.util.LinkedList<java.lang.Integer> |
getPlayers()
Get the list of Players in this group.
|
boolean |
isActive()
Did the user select this Group to be active?
|
boolean |
isDirty()
Does this Group need to be saved to disk?
|
boolean |
isIgnore()
Is this a list of players to ignore?
|
void |
setActive(boolean active)
The user changed this Group's active state.
|
void |
setColor(java.awt.Color color)
Set the color to display group members in.
|
void |
setColorStore(long rgb)
Set the color from a database friendly format.
|
void |
setDirty(boolean dirty)
Set whether this Group needs to be saved or not.
|
void |
setGroupName(java.lang.String groupName)
Set the name of this group.
|
void |
setId(int id)
Set the unique id for this GroupOfPlayers
|
void |
setIgnore(boolean ignore)
Are ignoring this list of players
|
void |
setPlayerGroups(java.util.List<PlayerGroup> playerGroups)
Set the PlayerGroup list, usually after loading it from the database.
|
public GroupOfPlayers()
public GroupOfPlayers(java.lang.String groupName, java.awt.Color color)
groupName
- The name of this new GroupOfPlayerscolor
- The color to display this group in.public int getId()
public void setId(int id)
id
- the id to setpublic java.lang.String getGroupName()
public void setGroupName(java.lang.String groupName)
groupName
- the name to setpublic java.awt.Color getColor()
public void setColor(java.awt.Color color)
color
- the color to setpublic long getColorStore()
public void setColorStore(long rgb)
rgb
- public java.util.LinkedList<java.lang.Integer> getPlayers()
public java.util.List<PlayerGroup> getPlayerGroups()
public void setPlayerGroups(java.util.List<PlayerGroup> playerGroups)
playerGroups
- The PlayerGroups for this grouppublic void addPlayer(int playerId)
playerId
- The id of the player to add to this group.public boolean isIgnore()
public void setIgnore(boolean ignore)
ignore
- the ignore to setpublic boolean isActive()
public void setActive(boolean active)
active
- the active to setpublic boolean isDirty()
public void setDirty(boolean dirty)
dirty
- the dirty to set