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 classBehaviorHub.BehaviorTriggerNested classes/interfaces inherited from class zombie.behaviors.Behavior
Behavior.BehaviorResult -
Field Summary
Fields Modifier and Type Field Description java.util.HashMapTriggerMapFields inherited from class zombie.behaviors.Behavior
childNodes, last -
Constructor Summary
Constructors Constructor Description BehaviorHub() -
Method Summary
Modifier and Type Method Description BehaviorHub.BehaviorTriggerAddTrigger(java.lang.String name, float startValue, float triggerValue, float decay, Behavior behavior)voidChangeTriggerValue(java.lang.String name, float amount)Behavior.BehaviorResultprocess(DecisionPath path, IsoGameCharacter character)voidreset()voidSetTriggerValue(java.lang.String name, float amount)booleanvalid()Methods inherited from class zombie.behaviors.Behavior
addChild, getPathSpeed, onSwitch, processChild, renderDebug, updateMethods 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()
-