Class MourirFourmi

java.lang.Object
fr.formiko.formiko.interfaces.MourirFourmi
All Implemented Interfaces:
Mourir, Serializable

public class MourirFourmi extends Object implements Serializable, Mourir
Ant implementation.
Allow an ant to died
Author:
Hydrolien
See Also:
  • Constructor Details

    • MourirFourmi

      public MourirFourmi()
  • Method Details

    • mourir

      public void mourir(Creature c, int r)
      Kill an ant an print a message.
      We need to remove it from the map, from it anthill and from playing ant if it was playing.
      Specified by:
      mourir in interface Mourir
      Parameters:
      c - ant who is diing.
      r - reason of death.
    • supprimerDeLaCarte

      public void supprimerDeLaCarte(Creature c)
      Delete the ant from the map.
      Specified by:
      supprimerDeLaCarte in interface Mourir
      Parameters:
      c - Creature who is diing.
    • deleteFromGame

      private void deleteFromGame(Fourmi f)
      Delete the ant from the map and the anthill.
      Parameters:
      f - ant who is diing.