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.Serializable
Represents 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 int
getBackgroundColor()
int
getBackgroundForeColor()
FieldState
getField()
LevelInfo
getInfo()
int
getLevelColor()
java.lang.String
getLevelInfoText()
java.lang.String
getLevelName()
java.lang.String
getLevelText()
Gets the levels intro text.int
getRoundCount()
void
setBackgroundColor(int backgroundColor)
void
setBackgroundForeColor(int backgroundForeColor)
void
setField(FieldState field)
void
setLevelInfoText(java.lang.String levelInfoText)
void
setRoundCount(int roundCount)
java.lang.String
toString()
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:
toString
in classjava.lang.Object
- Returns:
- "LevelState: LEVELNAME"
-
-