Package com.starpoints.state
Class ItemState
- java.lang.Object
-
- com.starpoints.state.ThingState
-
- com.starpoints.state.ItemState
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
PermanentItemState
public class ItemState extends ThingState
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.starpoints.state.ThingState
energy, maxEnergy, name
-
-
Constructor Summary
Constructors Constructor Description ItemState(java.lang.String className, int ID, java.lang.String imageName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DieReason
getDieReason()
java.lang.String
getDrawText()
ItemMove
getItemMove()
int
getUserID()
boolean
isRocket()
boolean
isShowingEnergyFx()
void
setDieReason(DieReason dieReason)
void
setDrawText(java.lang.String drawText)
void
setItemMove(ItemMove itemMove)
void
setRocket(boolean isRocket)
void
setShowingEnergyFx(boolean isShowingEnergyFx)
void
setUserID(int userID)
-
Methods inherited from class com.starpoints.state.ThingState
addProperty, equals, getBooleanProperty, getClassName, getColor, getEnergy, getEnergyMaxCount, getExplosionCounter, getID, getImageName, getIntProperty, getMaxEnergy, getName, getOuterColor, getProperties, getProperty, getStatus, getText, getTextColor, getTextCounter, getX, getY, hashCode, isDestroyed, isExploding, isInvulnerable, isOK, setColor, setEnergy, setEnergyMaxCount, setExplosionCounter, setID, setImageName, setMaxEnergy, setName, setOK, setOuterColor, setStatus, setText, setTextColor, setTextCounter, setX, setY, toString
-
-
-
-
Method Detail
-
getDieReason
public DieReason getDieReason()
- Returns:
- the dieReason
-
setDieReason
public void setDieReason(DieReason dieReason)
- Parameters:
dieReason
- the dieReason to set
-
getUserID
public int getUserID()
- Returns:
- the userID
-
setUserID
public void setUserID(int userID)
- Parameters:
userID
- the userID to set
-
getDrawText
public java.lang.String getDrawText()
- Returns:
- the drawText
-
setDrawText
public void setDrawText(java.lang.String drawText)
- Parameters:
drawText
- the drawText to set
-
isShowingEnergyFx
public boolean isShowingEnergyFx()
- Returns:
- the isShowingEnergyFx
-
setShowingEnergyFx
public void setShowingEnergyFx(boolean isShowingEnergyFx)
- Parameters:
isShowingEnergyFx
- the isShowingEnergyFx to set
-
isRocket
public boolean isRocket()
- Returns:
- the isRocket
-
setRocket
public void setRocket(boolean isRocket)
- Parameters:
isRocket
- the isRocket to set
-
getItemMove
public ItemMove getItemMove()
- Returns:
- the itemMove
-
setItemMove
public void setItemMove(ItemMove itemMove)
- Parameters:
itemMove
- the itemMove to set
-
-