Method Summary |
|
void |
addTrackTriggerListener(TrackTriggerListener listener) Registers a TrackTriggerListener callback interface |
static TrackTrigger |
createTrackTriggerAtOffset(TrackPos pos, double offset) Creates a track trigger at the track position with offset in meters on the center of rails spline |
Coaster |
getCoaster() Returns the coaster this trigger belongs to |
String |
getName() Returns the trigger's name as specified in the editor |
void |
onNextFrame() This method is part of the FrameListener Interface implementation |
void |
removeTrackTriggerListener(TrackTriggerListener listener) Removes a registered TrackTriggerListener callback interface |
Method Detail |
public void addTrackTriggerListener(TrackTriggerListener listener)
Registers a TrackTriggerListener callback interface
Parameters:
listener | - | The callback listener to be registered, must not be null |
public static TrackTrigger createTrackTriggerAtOffset(TrackPos pos, double offset)
Creates a track trigger at the track position with offset in meters on the center of rails spline
Warning: The computed trigger position will be clamped to the start and end of the current piece of track. The offset will not go beyond special or custom track boundaries.
public final Coaster getCoaster()
Returns the coaster this trigger belongs to
Returns:
coaster this trigger belongs to
Since:
2.5.7.0
public final String getName()
Returns the trigger's name as specified in the editor
Returns:
the name of the trigger as specified in the editor
Since:
2.6.5.6
public void onNextFrame()
This method is part of the FrameListener Interface implementation
Never call this method.
public void removeTrackTriggerListener(TrackTriggerListener listener)
Removes a registered TrackTriggerListener callback interface
Parameters:
listener | - | The listener to be removed |