Class ShopState

  • All Implemented Interfaces:
    java.io.Serializable

    public class ShopState
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • 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.