public class BeamBehavior extends Behavior implements IBeam
Constructor and Description |
---|
BeamBehavior(java.lang.String name,
IThoughtModel thoughtModel,
float beamHigh)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
float[] |
getPos()
Retrieve target beaming position
|
void |
perform()
Called to perform the behavior
|
void |
setPos(float x,
float y,
float rotation)
Set target beaming position
|
abort, getConsecutivePerforms, getIntensity, getName, getPerforms, getRootBehavior, getSuccessfulPerforms, getUnsuccessfulPerforms, init, isFinished, onLeavingBehavior, reload, setIntensity, setName, stayIn, switchFrom, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
abort, getConsecutivePerforms, getIntensity, getName, getPerforms, getRootBehavior, getSuccessfulPerforms, getUnsuccessfulPerforms, init, isFinished, onLeavingBehavior, reload, setIntensity, stayIn, switchFrom
public BeamBehavior(java.lang.String name, IThoughtModel thoughtModel, float beamHigh)
name
- identifier for this behaviorthoughtModel
- Reference to the thought model objectpublic void perform()
IBehavior
public void setPos(float x, float y, float rotation)
IBeam
public float[] getPos()