MotionTimer

abstract class MotionTimer

Class MotionTimer. Provides motiontimer functionality for the Hytale server.

java.lang.Object > MotionTimer

Field Summary

activeTime

protected double activeTime

Field activeTime.

timeToLive

protected double timeToLive

Field timeToLive.

timerRange

final double[] timerRange

Field timerRange.

Method Detail

MotionTimer

public public MotionTimer (@Nonnull final BuilderMotionTimer builder, @Nonnull final BuilderSupport builderSupport, final T motion)

Method MotionTimer.

Parameters:
@Nonnull final BuilderMotionTimer builder
@Nonnull final BuilderSupport builderSupport
final T motion

activate

public void activate (@Nonnull final Ref ref, @Nonnull final Role role, @Nonnull final ComponentAccessor componentAccessor)

Method activate.

Parameters:
@Nonnull final Ref ref
@Nonnull final Role role
@Nonnull final ComponentAccessor componentAccessor

deactivate

public void deactivate (@Nonnull final Ref ref, @Nonnull final Role role, @Nonnull final ComponentAccessor componentAccessor)

Method deactivate.

Parameters:
@Nonnull final Ref ref
@Nonnull final Role role
@Nonnull final ComponentAccessor componentAccessor

computeSteering

public boolean computeSteering (@Nonnull final Ref ref, @Nonnull final Role support, @Nullable final InfoProvider sensorInfo, final double dt, @Nonnull final Steering desiredSteering, @Nonnull final ComponentAccessor componentAccessor)

Method computeSteering.

Parameters:
@Nonnull final Ref ref
@Nonnull final Role support
@Nullable final InfoProvider sensorInfo
final double dt
@Nonnull final Steering desiredSteering
@Nonnull final ComponentAccessor componentAccessor

registerWithSupport

public void registerWithSupport (final Role role)

Method registerWithSupport.

Parameters:
final Role role

motionControllerChanged

public void motionControllerChanged (@Nullable final Ref ref, @Nonnull final NPCEntity npcComponent, final MotionController motionController, @Nullable final ComponentAccessor componentAccessor)

Method motionControllerChanged.

Parameters:
@Nullable final Ref ref
@Nonnull final NPCEntity npcComponent
final MotionController motionController
@Nullable final ComponentAccessor componentAccessor

loaded

public void loaded (final Role role)

Method loaded.

Parameters:
final Role role

spawned

public void spawned (final Role role)

Method spawned.

Parameters:
final Role role

unloaded

public void unloaded (final Role role)

Method unloaded.

Parameters:
final Role role

removed

public void removed (final Role role)

Method removed.

Parameters:
final Role role

teleported

public void teleported (final Role role, final World from, final World to)

Method teleported.

Parameters:
final Role role
final World from
final World to