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 classBehavior.BehaviorResult -
Field Summary
Fields Modifier and Type Field Description protected java.util.ArrayListchildNodesBehavior.BehaviorResultlast -
Constructor Summary
Constructors Constructor Description Behavior() -
Method Summary
Modifier and Type Method Description voidaddChild(Behavior behavior)floatgetPathSpeed()voidonSwitch()abstract Behavior.BehaviorResultprocess(DecisionPath decisionPath, IsoGameCharacter gameCharacter)Behavior.BehaviorResultprocessChild(DecisionPath decisionPath, IsoGameCharacter gameCharacter, int int1)intrenderDebug(int int1)abstract voidreset()voidupdate()abstract booleanvalid()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)
-