Class StandOnIdle
java.lang.Object
games.stendhal.server.entity.creature.impl.idle.StandOnIdle
- All Implemented Interfaces:
IdleBehaviour
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected boolean
retreatUnderFire(Creature creature)
Run away if under ranged fire, and unable to attack back.
-
Constructor Details
-
StandOnIdle
public StandOnIdle()
-
-
Method Details
-
perform
- Specified by:
perform
in interfaceIdleBehaviour
-
retreatUnderFire
Run away if under ranged fire, and unable to attack back.- Parameters:
creature
- The creature that should try to retreat.- Returns:
true
if trying to escape,false
if retreatin is not needed
-