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 string, float float1, float float2, float float3, Behavior behavior)
void
ChangeTriggerValue(java.lang.String string, float float1)
Behavior.BehaviorResult
process(DecisionPath decisionPath, IsoGameCharacter gameCharacter)
void
reset()
void
SetTriggerValue(java.lang.String string, float float1)
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 string, float float1, float float2, float float3, Behavior behavior) -
ChangeTriggerValue
public void ChangeTriggerValue(java.lang.String string, float float1) -
process
-
reset
public void reset() -
SetTriggerValue
public void SetTriggerValue(java.lang.String string, float float1) -
valid
public boolean valid()
-