Package zombie.behaviors
Class BehaviorHub
java.lang.Object
zombie.behaviors.Behavior
zombie.behaviors.BehaviorHub
public class BehaviorHub extends Behavior
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
BehaviorHub.BehaviorTrigger
Nested classes/interfaces inherited from class zombie.behaviors.Behavior
Behavior.BehaviorResult
-
Field Summary
Fields Modifier and Type Field Description java.util.HashMap
TriggerMap
Fields inherited from class zombie.behaviors.Behavior
childNodes, last
-
Constructor Summary
Constructors Constructor Description BehaviorHub()
-
Method Summary
Modifier and Type Method Description BehaviorHub.BehaviorTrigger
AddTrigger(java.lang.String name, float startValue, float triggerValue, float decay, Behavior behavior)
void
ChangeTriggerValue(java.lang.String name, float amount)
Behavior.BehaviorResult
process(DecisionPath path, IsoGameCharacter character)
void
reset()
void
SetTriggerValue(java.lang.String name, float amount)
boolean
valid()
Methods inherited from class zombie.behaviors.Behavior
addChild, getPathSpeed, onSwitch, processChild, renderDebug, update
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
TriggerMap
public java.util.HashMap TriggerMap
-
-
Constructor Details
-
BehaviorHub
public BehaviorHub()
-
-
Method Details
-
AddTrigger
public BehaviorHub.BehaviorTrigger AddTrigger(java.lang.String name, float startValue, float triggerValue, float decay, Behavior behavior) -
ChangeTriggerValue
public void ChangeTriggerValue(java.lang.String name, float amount) -
process
-
reset
public void reset() -
SetTriggerValue
public void SetTriggerValue(java.lang.String name, float amount) -
valid
public boolean valid()
-