Package jadex.bdi.examples.blackjack
Class GameStateData
- java.lang.Object
 - 
- jadex.bdi.examples.blackjack.GameStateData
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected PlayerdealerAttribute for slot dealer.protected java.util.ListplayersAttribute for slot players.- 
Fields inherited from interface jadex.commons.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32 
 - 
 
- 
Constructor Summary
Constructors Constructor Description GameStateData()Default Constructor. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPlayer(Player player)Add a player to this GameState.BeanInfo[]getAdditionalBeanInfo()Get additional bean info.BeanDescriptorgetBeanDescriptor()Get the bean descriptor.PlayergetDealer()Get the dealer of this GameState.intgetDefaultEventIndex()Get the default event index.intgetDefaultPropertyIndex()Get the default property index.EventSetDescriptor[]getEventSetDescriptors()Get the event set descriptors.java.awt.ImagegetIcon(int iconKind)Get the icon.MethodDescriptor[]getMethodDescriptors()Get the method descriptors.PlayergetPlayer(int idx)Get an players of this GameState.Player[]getPlayers()Get the players of this GameState.PropertyDescriptor[]getPropertyDescriptors()Get the property descriptors.java.awt.ImageloadImage(java.lang.String resourceName)Load the image.booleanremovePlayer(Player player)Remove a player from this GameState.voidsetDealer(Player dealer)Set the dealer of this GameState.voidsetPlayer(int idx, Player player)Set a player to this GameState.voidsetPlayers(Player[] players)Set the players of this GameState.java.lang.StringtoString()Get a string representation of this GameState. 
 - 
 
- 
- 
Field Detail
- 
dealer
protected Player dealer
Attribute for slot dealer. 
- 
players
protected java.util.List players
Attribute for slot players. 
 - 
 
- 
Method Detail
- 
getDealer
public Player getDealer()
Get the dealer of this GameState.- Returns:
 - dealer
 
 
- 
setDealer
public void setDealer(Player dealer)
Set the dealer of this GameState.- Parameters:
 dealer- the value to be set
 
- 
getPlayers
public Player[] getPlayers()
Get the players of this GameState.- Returns:
 - players
 
 
- 
setPlayers
public void setPlayers(Player[] players)
Set the players of this GameState.- Parameters:
 players- the value to be set
 
- 
getPlayer
public Player getPlayer(int idx)
Get an players of this GameState.- Parameters:
 idx- The index.- Returns:
 - players
 
 
- 
setPlayer
public void setPlayer(int idx, Player player)Set a player to this GameState.- Parameters:
 idx- The index.player- a value to be added
 
- 
addPlayer
public void addPlayer(Player player)
Add a player to this GameState.- Parameters:
 player- a value to be removed
 
- 
removePlayer
public boolean removePlayer(Player player)
Remove a player from this GameState.- Parameters:
 player- a value to be removed- Returns:
 - True when the players have changed.
 
 
- 
getBeanDescriptor
public BeanDescriptor getBeanDescriptor()
Get the bean descriptor.- Specified by:
 getBeanDescriptorin interfaceBeanInfo- Returns:
 - The bean descriptor.
 
 
- 
getPropertyDescriptors
public PropertyDescriptor[] getPropertyDescriptors()
Get the property descriptors.- Specified by:
 getPropertyDescriptorsin interfaceBeanInfo- Returns:
 - The property descriptors.
 
 
- 
getDefaultPropertyIndex
public int getDefaultPropertyIndex()
Get the default property index.- Specified by:
 getDefaultPropertyIndexin interfaceBeanInfo- Returns:
 - The property index.
 
 
- 
getEventSetDescriptors
public EventSetDescriptor[] getEventSetDescriptors()
Get the event set descriptors.- Specified by:
 getEventSetDescriptorsin interfaceBeanInfo- Returns:
 - The event set descriptors.
 
 
- 
getDefaultEventIndex
public int getDefaultEventIndex()
Get the default event index.- Specified by:
 getDefaultEventIndexin interfaceBeanInfo- Returns:
 - The default event index.
 
 
- 
getMethodDescriptors
public MethodDescriptor[] getMethodDescriptors()
Get the method descriptors.- Specified by:
 getMethodDescriptorsin interfaceBeanInfo- Returns:
 - The method descriptors.
 
 
- 
getAdditionalBeanInfo
public BeanInfo[] getAdditionalBeanInfo()
Get additional bean info.- Specified by:
 getAdditionalBeanInfoin interfaceBeanInfo- Returns:
 - Get additional bean info.
 
 
- 
getIcon
public java.awt.Image getIcon(int iconKind)
Get the icon.- Returns:
 - The icon.
 
 
- 
loadImage
public java.awt.Image loadImage(java.lang.String resourceName)
Load the image.- Returns:
 - The image.
 
 
- 
toString
public java.lang.String toString()
Get a string representation of this GameState.- Overrides:
 toStringin classjava.lang.Object- Returns:
 - The string representation.
 
 
 - 
 
 -