Package com.starpoints.state
Class PermanentItemState
- java.lang.Object
-
- com.starpoints.state.ThingState
-
- com.starpoints.state.ItemState
-
- com.starpoints.state.PermanentItemState
-
- All Implemented Interfaces:
java.io.Serializable
public class PermanentItemState extends ItemState
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.starpoints.state.ThingState
energy, maxEnergy, name
-
-
Constructor Summary
Constructors Constructor Description PermanentItemState(java.lang.String className, int ID, java.lang.String imageName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDuration()
int
getEnergyGain()
java.lang.String
getOverlayImage()
boolean
isRegenerationItem()
boolean
isUsingUp()
Checks, if item is using up.void
setDuration(int duration)
void
setEnergyGain(int energyGain)
void
setIsUsingUp(boolean isUsingUp)
void
setOverlayImage(java.lang.String overlayImage)
-
Methods inherited from class com.starpoints.state.ItemState
getDieReason, getDrawText, getItemMove, getUserID, isRocket, isShowingEnergyFx, setDieReason, setDrawText, setItemMove, setRocket, setShowingEnergyFx, setUserID
-
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
-
getDuration
public int getDuration()
- Returns:
- the duration
-
setDuration
public void setDuration(int duration)
- Parameters:
duration
- the duration to set
-
getOverlayImage
public java.lang.String getOverlayImage()
- Returns:
- the overlayImage
-
setOverlayImage
public void setOverlayImage(java.lang.String overlayImage)
- Parameters:
overlayImage
- the overlayImage to set
-
isUsingUp
public boolean isUsingUp()
Checks, if item is using up.- Returns:
-
setIsUsingUp
public void setIsUsingUp(boolean isUsingUp)
- Parameters:
isUsingUp
- the isUsingUp to set
-
isRegenerationItem
public boolean isRegenerationItem()
- Returns:
- the isRegenerationItem
-
getEnergyGain
public int getEnergyGain()
- Returns:
- the energyGain
-
setEnergyGain
public void setEnergyGain(int energyGain)
- Parameters:
energyGain
- the energyGain to set
-
-