Class EntityDespawnAction


  • public class EntityDespawnAction
    extends EntityAction
    An entity action for when the entity is removed from a play field
    Author:
    Tim Neumann
    • Constructor Detail

      • EntityDespawnAction

        public EntityDespawnAction​(long tickNumber,
                                   Entity entity,
                                   Playfield playfield)
        Create an entity despawn action
        Parameters:
        tickNumber - the tick the action happened at
        entity - the entity that caused the action
        playfield - the playfield the entity was removed from
    • Method Detail

      • getPlayfield

        public Playfield getPlayfield()
        Returns:
        the playfield the entity was removed from
      • getDescription

        public String getDescription()
        Specified by:
        getDescription in class Action
        Returns:
        the description of this action