Package fr.formiko.formiko.interfaces
Class ChasseInsectivore
java.lang.Object
fr.formiko.formiko.interfaces.ChasseInsectivore
- All Implemented Interfaces:
Chasse
,Serializable
Ant implementation.
Allow an ant to do hunt
Ant are able to see other ObjetSurCarteAId as Creature at 1 Case of distance.
Allow an ant to do hunt
Ant are able to see other ObjetSurCarteAId as Creature at 1 Case of distance.
- Author:
- Hydrolien
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
actions during hunt.boolean
try to hunt or moove.boolean
Butcher during hunt.getProie()
fined a prey.boolean
Return true if there is prey on same square.void
boolean
kill during hunt.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface fr.formiko.formiko.interfaces.Chasse
breakSeed, canBreakSeed, canEatSeed, canHuntMore, eatSeed, setActionMoins
-
Field Details
-
c
-
-
Constructor Details
-
ChasseInsectivore
public ChasseInsectivore()
-
-
Method Details
-
setC
-
chasser
try to hunt or moove. -
chasse
actions during hunt.
An Ant kill an Insect in the same Case
It can choose the first 1 or the better 1 depending on the difficulty. -
getProie
fined a prey. -
tuer
kill during hunt.
An Ant kill an Insect- Parameters:
insecteTue
- The insect that will die.
-
depecer
Butcher during hunt.
An Ant kill an Insect- Parameters:
insecteTue
- The died Insect.
-
canHuntMore
public boolean canHuntMore() -
havePreyOnSameSquare
Return true if there is prey on same square.- Specified by:
havePreyOnSameSquare
in interfaceChasse
-