Class Explosion

  • All Implemented Interfaces:
    com.badlogic.gdx.ai.msg.Telegraph


    public class Explosion
    extends AbstractEntity
    implements com.badlogic.gdx.ai.msg.Telegraph
    See Also:
    Serialized Form
    • Constructor Detail

      • Explosion

        public Explosion​()
        simple explosion without screen shake. Default radius is 2. Damage 500.
      • Explosion

        public Explosion​(int radius,
                         int damage,
                         Camera camera)
        Parameters:
        radius - the radius in game world blocks
        damage - Damage at center.
        camera - can be null. used for screen shake
    • Method Detail

      • update

        public void update​(float dt)
        Description copied from class: AbstractEntity
        Updates the logic of the object.
        Overrides:
        update in class AbstractEntity
        Parameters:
        dt - time since last update in game time
      • spawn

        public AbstractEntity spawn​(Point point)
        explodes
        Overrides:
        spawn in class AbstractEntity
        Parameters:
        point - the point in the game world where the object is. If it was previously set this is ignored.
        Returns:
      • handleMessage

        public boolean handleMessage​(com.badlogic.gdx.ai.msg.Telegram msg)
        Specified by:
        handleMessage in interface com.badlogic.gdx.ai.msg.Telegraph