Package com.starpoints.state
Class ShopState
- java.lang.Object
-
- com.starpoints.state.ShopState
-
- All Implemented Interfaces:
java.io.Serializable
public class ShopState extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSellItem(ShopItemState shopItem)
Adds a sell item.void
addShopItem(ShopItemState shopItem)
Adds a shop item.FigureState
getCurrentFigure()
gets the current figure.java.lang.String
getMessage()
Gets the shop message.ShopMode
getMode()
int
getModeCount()
int
getPlayerIndex()
Gets the current players index.java.util.List<ShopItemState>
getSellItems()
Gets the list of sell items.ShopInfo
getShopInfo()
Gets the shop info.java.util.List<ShopItemState>
getShopItems()
Gets the list of shop items.boolean
isFinished()
void
setCurrentFigure(FigureState currentFigure)
Sets the current figure.void
setFinished(boolean finished)
void
setMessage(java.lang.String message)
void
setMode(ShopMode mode)
void
setModeCount(int modeCount)
void
setPlayerIndex(int index)
-
-
-
Constructor Detail
-
ShopState
public ShopState(ShopInfo shopInfo)
-
-
Method Detail
-
getMode
public ShopMode getMode()
- Returns:
- the mode
-
setMode
public void setMode(ShopMode mode)
- Parameters:
mode
- the mode to set
-
getModeCount
public int getModeCount()
- Returns:
- the modeCount
-
setModeCount
public void setModeCount(int modeCount)
- Parameters:
modeCount
- the modeCount to set
-
isFinished
public boolean isFinished()
- Returns:
- the finished
-
setFinished
public void setFinished(boolean finished)
- Parameters:
finished
- the finished to set
-
getCurrentFigure
public FigureState getCurrentFigure()
gets the current figure.- Returns:
- The current figure.
-
setCurrentFigure
public void setCurrentFigure(FigureState currentFigure)
Sets the current figure.- Parameters:
currentFigure
- The currentFigure to set.
-
getShopItems
public java.util.List<ShopItemState> getShopItems()
Gets the list of shop items.- Returns:
- The shop items.
-
addShopItem
public void addShopItem(ShopItemState shopItem)
Adds a shop item.- Parameters:
shopItem
- The shopItem to add.
-
getSellItems
public java.util.List<ShopItemState> getSellItems()
Gets the list of sell items.- Returns:
- The sell items.
-
addSellItem
public void addSellItem(ShopItemState shopItem)
Adds a sell item.- Parameters:
shopItem
- The shopItem to add.
-
getShopInfo
public ShopInfo getShopInfo()
Gets the shop info.- Returns:
- The ShopInfo.
-
getMessage
public java.lang.String getMessage()
Gets the shop message.- Returns:
- The message.
-
setMessage
public void setMessage(java.lang.String message)
- Parameters:
message
- the message to set
-
getPlayerIndex
public int getPlayerIndex()
Gets the current players index.- Returns:
- The current player index.
-
setPlayerIndex
public void setPlayerIndex(int index)
- Parameters:
index
- The current player index to set.
-
-