Package fr.formiko.formiko.interfaces
Class MourirFourmi
java.lang.Object
fr.formiko.formiko.interfaces.MourirFourmi
- All Implemented Interfaces:
Mourir
,Serializable
Ant implementation.
Allow an ant to died
Allow an ant to died
- Author:
- Hydrolien
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
Delete the ant from the map and the anthill.void
Kill an ant an print a message.void
Delete the ant from the map.
-
Constructor Details
-
MourirFourmi
public MourirFourmi()
-
-
Method Details
-
mourir
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. -
supprimerDeLaCarte
Delete the ant from the map.- Specified by:
supprimerDeLaCarte
in interfaceMourir
- Parameters:
c
- Creature who is diing.
-
deleteFromGame
Delete the ant from the map and the anthill.- Parameters:
f
- ant who is diing.
-