Package fr.formiko.formiko.interfaces
Class ChasseHerbivore
java.lang.Object
fr.formiko.formiko.interfaces.ChasseHerbivore
- All Implemented Interfaces:
Chasse
,Serializable
Chasse implementation.
Allow a creature to do hunt as an herbivore.
Allow a creature to do hunt as an herbivore.
- Author:
- Hydrolien
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
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
Creature c
-
-
Constructor Details
-
ChasseHerbivore
public ChasseHerbivore()
-
-
Method Details
-
setC
-
chasser
-
chasse
Hunt as an herbivore.
return true if Insecte have eat or moove. -
manger
public boolean manger()Eat as an herbivore.
return true if Insecte have eat. -
havePreyOnSameSquare
Return true if there is prey on same square.- Specified by:
havePreyOnSameSquare
in interfaceChasse
-