public abstract class GameStateData
extends java.lang.Object
implements jadex.commons.beans.BeanInfo
Modifier and Type | Field and Description |
---|---|
protected Player |
dealer
Attribute for slot dealer.
|
protected java.util.List |
players
Attribute for slot players.
|
Constructor and Description |
---|
GameStateData()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addPlayer(Player player)
Add a player to this GameState.
|
jadex.commons.beans.BeanInfo[] |
getAdditionalBeanInfo()
Get additional bean info.
|
jadex.commons.beans.BeanDescriptor |
getBeanDescriptor()
Get the bean descriptor.
|
Player |
getDealer()
Get the dealer of this GameState.
|
int |
getDefaultEventIndex()
Get the default event index.
|
int |
getDefaultPropertyIndex()
Get the default property index.
|
jadex.commons.beans.EventSetDescriptor[] |
getEventSetDescriptors()
Get the event set descriptors.
|
java.awt.Image |
getIcon(int iconKind)
Get the icon.
|
jadex.commons.beans.MethodDescriptor[] |
getMethodDescriptors()
Get the method descriptors.
|
Player |
getPlayer(int idx)
Get an players of this GameState.
|
Player[] |
getPlayers()
Get the players of this GameState.
|
jadex.commons.beans.PropertyDescriptor[] |
getPropertyDescriptors()
Get the property descriptors.
|
java.awt.Image |
loadImage(java.lang.String resourceName)
Load the image.
|
boolean |
removePlayer(Player player)
Remove a player from this GameState.
|
void |
setDealer(Player dealer)
Set the dealer of this GameState.
|
void |
setPlayer(int idx,
Player player)
Set a player to this GameState.
|
void |
setPlayers(Player[] players)
Set the players of this GameState.
|
java.lang.String |
toString()
Get a string representation of this GameState.
|
protected Player dealer
protected java.util.List players
public GameStateData()
GameState
.public Player getDealer()
public void setDealer(Player dealer)
dealer
- the value to be setpublic Player[] getPlayers()
public void setPlayers(Player[] players)
players
- the value to be setpublic Player getPlayer(int idx)
idx
- The index.public void setPlayer(int idx, Player player)
idx
- The index.player
- a value to be addedpublic void addPlayer(Player player)
player
- a value to be removedpublic boolean removePlayer(Player player)
player
- a value to be removedpublic jadex.commons.beans.BeanDescriptor getBeanDescriptor()
getBeanDescriptor
in interface jadex.commons.beans.BeanInfo
public jadex.commons.beans.PropertyDescriptor[] getPropertyDescriptors()
getPropertyDescriptors
in interface jadex.commons.beans.BeanInfo
public int getDefaultPropertyIndex()
getDefaultPropertyIndex
in interface jadex.commons.beans.BeanInfo
public jadex.commons.beans.EventSetDescriptor[] getEventSetDescriptors()
getEventSetDescriptors
in interface jadex.commons.beans.BeanInfo
public int getDefaultEventIndex()
getDefaultEventIndex
in interface jadex.commons.beans.BeanInfo
public jadex.commons.beans.MethodDescriptor[] getMethodDescriptors()
getMethodDescriptors
in interface jadex.commons.beans.BeanInfo
public jadex.commons.beans.BeanInfo[] getAdditionalBeanInfo()
getAdditionalBeanInfo
in interface jadex.commons.beans.BeanInfo
public java.awt.Image getIcon(int iconKind)
public java.awt.Image loadImage(java.lang.String resourceName)
public java.lang.String toString()
toString
in class java.lang.Object