public class ShipNavigationTool extends AbstractTool
Modifier and Type | Class and Description |
---|---|
static interface |
ShipNavigationTool.PickDelegate |
Constructor and Description |
---|
ShipNavigationTool()
the constructor.
|
Modifier and Type | Method and Description |
---|---|
double[] |
getCenter() |
double |
getGain() |
double |
getGravity() |
double |
getJumpSpeed() |
double |
getMinHeight() |
ShipNavigationTool.PickDelegate |
getPickDelegate() |
double |
getRunFactor() |
boolean |
isCenter() |
boolean |
isGravitEnabled() |
void |
perform(ToolContext tc)
This method is called when the tool is activated and any
AxisState or TransformationMatrix of the current slots changes.
|
void |
setCenter(boolean center) |
void |
setCenter(double[] center) |
void |
setGain(double gain) |
void |
setGravitEnabled(boolean gravitEnabled) |
void |
setGravity(double gravity) |
void |
setJumpSpeed(double jumpSpeed) |
void |
setMinHeight(double minHeight) |
void |
setPickDelegate(ShipNavigationTool.PickDelegate pickDelegate) |
void |
setRunFactor(double runFactor) |
activate, addCurrentSlot, deactivate, equals, fullDescription, getActivationSlots, getCurrentSlots, getDescription, getDescription, hashCode, removeCurrentSlot, setDescription
public void perform(ToolContext tc)
Tool
perform
in interface Tool
perform
in class AbstractTool
tc
- The current tool contextpublic double getGain()
public void setGain(double gain)
public double getGravity()
public void setGravity(double gravity)
public double getJumpSpeed()
public void setJumpSpeed(double jumpSpeed)
public double getRunFactor()
public void setRunFactor(double runFactor)
public boolean isCenter()
public void setCenter(boolean center)
public double[] getCenter()
public void setCenter(double[] center)
public boolean isGravitEnabled()
public void setGravitEnabled(boolean gravitEnabled)
public double getMinHeight()
public void setMinHeight(double minHeight)
public ShipNavigationTool.PickDelegate getPickDelegate()
public void setPickDelegate(ShipNavigationTool.PickDelegate pickDelegate)