Class LevelState

  • All Implemented Interfaces:
    java.io.Serializable

    public class LevelState
    extends java.lang.Object
    implements java.io.Serializable
    Represents the current state of a level.
    See Also:
    Serialized Form
    • Constructor Detail

      • LevelState

        public LevelState​(LevelInfo info)
    • Method Detail

      • getField

        public FieldState getField()
        Returns:
        the field
      • setField

        public void setField​(FieldState field)
        Parameters:
        field - the field to set
      • getInfo

        public LevelInfo getInfo()
        Returns:
        the info
      • getLevelName

        public java.lang.String getLevelName()
        Returns:
        the levelName
      • getLevelColor

        public int getLevelColor()
        Returns:
        the levelColor
      • getBackgroundColor

        public int getBackgroundColor()
        Returns:
        the backgroundColor
      • setBackgroundColor

        public void setBackgroundColor​(int backgroundColor)
        Parameters:
        backgroundColor - the backgroundColor to set
      • getBackgroundForeColor

        public int getBackgroundForeColor()
        Returns:
        the backgroundForeColor
      • setBackgroundForeColor

        public void setBackgroundForeColor​(int backgroundForeColor)
        Parameters:
        backgroundForeColor - the backgroundForeColor to set
      • getRoundCount

        public int getRoundCount()
        Returns:
        the roundCount
      • setRoundCount

        public void setRoundCount​(int roundCount)
        Parameters:
        roundCount - the roundCount to set
      • getLevelText

        public java.lang.String getLevelText()
        Gets the levels intro text.
        Returns:
        LevelInfo.levelText.
      • getLevelInfoText

        public java.lang.String getLevelInfoText()
        Returns:
        the levelInfoText
      • setLevelInfoText

        public void setLevelInfoText​(java.lang.String levelInfoText)
        Parameters:
        levelInfoText - the levelInfoText to set
      • toString

        public java.lang.String toString()
        Gets a string representation.
        Overrides:
        toString in class java.lang.Object
        Returns:
        "LevelState: LEVELNAME"