public class ShootToGoal extends SingleComplexBehavior
Constructor and Description |
---|
ShootToGoal(IThoughtModel thoughtModel,
java.util.Map<java.lang.String,IBehavior> behaviors)
Constructor
|
Modifier and Type | Method and Description |
---|---|
IBehavior |
decideNextBasicBehavior()
Decide for a single next behavior.
|
void |
setShootSpeed(int factor)
Set shooting speed
|
abort, getCurrentBehavior, getCurrentBehaviorchain, getRootBehavior, init, isBehaviorInExecution, isFinished, onLeavingBehavior, perform, switchFrom, toString
getConsecutivePerforms, getIntensity, getName, getPerforms, getSuccessfulPerforms, getUnsuccessfulPerforms, reload, setIntensity, setName, stayIn
public ShootToGoal(IThoughtModel thoughtModel, java.util.Map<java.lang.String,IBehavior> behaviors)
thoughtModel
- Reference to the thought model objectbehaviors
- List of applicable behaviorspublic IBehavior decideNextBasicBehavior()
SingleComplexBehavior
public void setShootSpeed(int factor)
factor
- Speed factor