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

      • FogHeal

        public FogHeal()
        Creates a new FogHeal.
    • 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_heal"
      • performEnterEffect

        protected void performEnterEffect​(Thing t,
                                          AnimationInfo animation)
        Regenerates MagentaEnergyGain*5 energy.
        Specified by:
        performEnterEffect in class Fog
        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 class Fog
        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 class Fog
        Parameters:
        t - The thing leaving in the fog.
        animation - The AnimationInfo.