Package com.starpoints.game.fog
Class FogHeal
- java.lang.Object
-
- com.starpoints.game.Thing
-
- com.starpoints.game.Fog
-
- com.starpoints.game.fog.FogHeal
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class FogHeal extends Fog
Fog class that lets anything inside regenerate.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.starpoints.game.Thing
DEBUG, energy, energyFx, energyMaxSoundPlayed, energyModifications, explosionCounter, game, imageName, innerColor, invulnCount, isAffectedByBlack, isAffectedByGray, level, MAX_TEXTPAINT, maxEnergy, nextID, outerColor, p, shieldCount, status, text
-
-
Constructor Summary
Constructors Constructor Description FogHeal()
Creates a new FogHeal.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getImageName(AnimationInfo animation)
Returns image name.protected void
performEnterEffect(Thing t, AnimationInfo animation)
Regenerates MagentaEnergyGain*5 energy.protected void
performLeaveEffect(Thing t, AnimationInfo animation)
Nothing special on leave.protected void
performStayEffect(Thing t, AnimationInfo animation)
Regenerates MagentaEnergyGain*3 energy.-
Methods inherited from class com.starpoints.game.Fog
createState, getFog, getFog, getImageIndex, getName, getRandomImageIndex, onEnemyKilled, setName, toString, updateExplodingStatus
-
Methods inherited from class com.starpoints.game.Thing
addEnergy, addShielding, addStateProperties, affectsBlue, clearTexts, die, displayText, displayText, entersColor, equals, getColor, getEnergy, getEnergyMaxCount, getExplosionCounter, getField, getGame, getID, getInnerColor, getInvulnerableRounds, getLevel, getMaxEnergy, getNextID, getOuterColor, getPoint, getShadowColor, getShield, getStateObject, getStatus, getText, getTextColor, getTextPaintCount, getX, getY, hashCode, invulnerable, isAffectedByBlack, isAffectedByGray, isDestroyed, isExploding, isInvulnerable, isOK, isShowingEnergyFx, onExplode, removeEnergy, retrieveState, setEnergy, setEnergyMaxCount, setGame, setMaxEnergy, setPoint, setStatus, staysOnColor, stepText, updateEnergy, updateThing
-
-
-
-
Method Detail
-
getImageName
public java.lang.String getImageName(AnimationInfo animation)
Returns image name.- Specified by:
getImageName
in classFog
- Parameters:
animation
- The AnimationInfo.- Returns:
- "fog_heal"
-
performEnterEffect
protected void performEnterEffect(Thing t, AnimationInfo animation)
Regenerates MagentaEnergyGain*5 energy.- Specified by:
performEnterEffect
in classFog
- Parameters:
t
- The thing entering the fog.animation
- The AnimationInfo.
-
performStayEffect
protected void performStayEffect(Thing t, AnimationInfo animation)
Regenerates MagentaEnergyGain*3 energy.- Specified by:
performStayEffect
in classFog
- Parameters:
t
- The thing staying in the fog.animation
- The AnimationInfo.
-
performLeaveEffect
protected void performLeaveEffect(Thing t, AnimationInfo animation)
Nothing special on leave.- Specified by:
performLeaveEffect
in classFog
- Parameters:
t
- The thing leaving in the fog.animation
- The AnimationInfo.
-
-