Class 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 Detail

      • baseImageName

        protected java.lang.String baseImageName
        A base image name.
    • Constructor Detail

      • FogHide

        public FogHide()
        Creates a new FogHide.
    • Method Detail

      • getImageName

        public java.lang.String getImageName​(AnimationInfo animation)
        Returns image name.
        Specified by:
        getImageName in class Fog
        Parameters:
        animation - The AnimationInfo.
        Returns:
        "fog_invisible"
      • performEnterEffect

        protected void performEnterEffect​(Thing t,
                                          AnimationInfo animation)
        Makes figures inside fogInvisible.
        Specified by:
        performEnterEffect in class Fog
        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 class Fog
        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 class Fog
        Parameters:
        t - The thing leaving the fog.
        animation - The AnimationInfo.