Package com.starpoints.game.fog
Class FogHide
- java.lang.Object
-
- com.starpoints.game.Thing
-
- com.starpoints.game.Fog
-
- com.starpoints.game.fog.FogHide
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
- Direct Known Subclasses:
FogHeat
public class FogHide extends Fog
Fog class that makes figures inside invisible.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
baseImageName
A base image name.-
Fields inherited from class com.starpoints.game.Thing
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 FogHide()
Creates a new FogHide.
-
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)
Makes figures inside fogInvisible.protected void
performLeaveEffect(Thing t, AnimationInfo animation)
Does nothing.protected void
performStayEffect(Thing t, AnimationInfo animation)
Makes figures inside fogInvisible.-
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_invisible"
-
performEnterEffect
protected void performEnterEffect(Thing t, AnimationInfo animation)
Makes figures inside fogInvisible.- Specified by:
performEnterEffect
in classFog
- Parameters:
t
- The thing entering the fog.animation
- The AnimationInfo.
-
performStayEffect
protected void performStayEffect(Thing t, AnimationInfo animation)
Makes figures inside fogInvisible.- Specified by:
performStayEffect
in classFog
- Parameters:
t
- The thing staying in the fog.animation
- The AnimationInfo.
-
performLeaveEffect
protected void performLeaveEffect(Thing t, AnimationInfo animation)
Does nothing.- Specified by:
performLeaveEffect
in classFog
- Parameters:
t
- The thing leaving the fog.animation
- The AnimationInfo.
-
-