Package zombie.behaviors
Class Behavior
java.lang.Object
zombie.behaviors.Behavior
- Direct Known Subclasses:
AttackBehavior
,BehaviorHub
,FindKnownItemBehavior
,FleeBehaviour
,FollowBehaviour
,MasterSurvivorBehavior
,ObeyOrders
,ObtainItemBehavior
,PathFindBehavior
,RandomBehavior
,RootBehavior
,SatisfyFatigueBehavior
,SatisfyHungerBehavior
,SatisfyIdleBehavior
,SelectorBehavior
,SequenceBehavior
public abstract class Behavior
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Behavior.BehaviorResult
-
Field Summary
Fields Modifier and Type Field Description protected java.util.ArrayList
childNodes
Behavior.BehaviorResult
last
-
Constructor Summary
Constructors Constructor Description Behavior()
-
Method Summary
Modifier and Type Method Description void
addChild(Behavior behavior)
float
getPathSpeed()
void
onSwitch()
abstract Behavior.BehaviorResult
process(DecisionPath decisionPath, IsoGameCharacter gameCharacter)
Behavior.BehaviorResult
processChild(DecisionPath decisionPath, IsoGameCharacter gameCharacter, int int1)
int
renderDebug(int int1)
abstract void
reset()
void
update()
abstract boolean
valid()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
last
-
childNodes
protected final java.util.ArrayList childNodes
-
-
Constructor Details
-
Behavior
public Behavior()
-
-
Method Details
-
getPathSpeed
public float getPathSpeed() -
renderDebug
public int renderDebug(int int1) -
update
public void update() -
onSwitch
public void onSwitch() -
process
public abstract Behavior.BehaviorResult process(DecisionPath decisionPath, IsoGameCharacter gameCharacter) -
reset
public abstract void reset() -
valid
public abstract boolean valid() -
addChild
-
processChild
public Behavior.BehaviorResult processChild(DecisionPath decisionPath, IsoGameCharacter gameCharacter, int int1)
-