Package fr.formiko.formiko.interfaces
Interface Chasse
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ChasseGranivore
,ChasseHerbivore
,ChasseInsectivore
,ChasseNull
hunt.
Allow a Creature to hunt other creature
Allow a Creature to hunt other creature
- Author:
- Hydrolien
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Default implementation that do nothing.default boolean
Default implementation that always return false.default boolean
Default implementation that always return false.default boolean
check if can hunt.boolean
boolean
default void
eatSeed()
Default implementation that do nothing.boolean
Return true if there is prey on same square.default void
Lower creature actions count.
-
Method Details
-
chasse
-
chasser
-
havePreyOnSameSquare
Return true if there is prey on same square. -
canHuntMore
check if can hunt. -
setActionMoins
Lower creature actions count. -
canEatSeed
default boolean canEatSeed()Default implementation that always return false. -
canBreakSeed
default boolean canBreakSeed()Default implementation that always return false. -
eatSeed
default void eatSeed()Default implementation that do nothing. -
breakSeed
default void breakSeed()Default implementation that do nothing.
-