public class BeamHomeBehavior extends BeamBehavior
Constructor and Description |
---|
BeamHomeBehavior(java.lang.String name,
IThoughtModel thoughtModel,
float beamHeigh)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
perform()
Called to perform the behavior
|
IBehavior |
switchFrom(IBehavior actualBehavior)
Decide if it is possible to switch to this behavior from the current
behavior.
|
getPos, setPos
abort, getConsecutivePerforms, getIntensity, getName, getPerforms, getRootBehavior, getSuccessfulPerforms, getUnsuccessfulPerforms, init, isFinished, onLeavingBehavior, reload, setIntensity, setName, stayIn, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
abort, getConsecutivePerforms, getIntensity, getName, getPerforms, getRootBehavior, getSuccessfulPerforms, getUnsuccessfulPerforms, init, isFinished, onLeavingBehavior, reload, setIntensity, stayIn
public BeamHomeBehavior(java.lang.String name, IThoughtModel thoughtModel, float beamHeigh)
name
- identifier for this behaviorthoughtModel
- Reference to the thought model objectpublic void perform()
IBehavior
perform
in interface IBehavior
perform
in class BeamBehavior
public IBehavior switchFrom(IBehavior actualBehavior)
IBehavior
switchFrom
in interface IBehavior
switchFrom
in class Behavior
actualBehavior
- the currently/actually performed behavior