Package com.starpoints.state
Class LevelState
- java.lang.Object
-
- com.starpoints.state.LevelState
-
- All Implemented Interfaces:
java.io.Serializable
public class LevelState extends java.lang.Object implements java.io.SerializableRepresents the current state of a level.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LevelState(LevelInfo info)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBackgroundColor()intgetBackgroundForeColor()FieldStategetField()LevelInfogetInfo()intgetLevelColor()java.lang.StringgetLevelInfoText()java.lang.StringgetLevelName()java.lang.StringgetLevelText()Gets the levels intro text.intgetRoundCount()voidsetBackgroundColor(int backgroundColor)voidsetBackgroundForeColor(int backgroundForeColor)voidsetField(FieldState field)voidsetLevelInfoText(java.lang.String levelInfoText)voidsetRoundCount(int roundCount)java.lang.StringtoString()Gets a string representation.
-
-
-
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:
toStringin classjava.lang.Object- Returns:
- "LevelState: LEVELNAME"
-
-