NPCInteractionSimulationHandler

public class NPCInteractionSimulationHandler implements IInteractionSimulationHandler

Class NPCInteractionSimulationHandler. Provides npcinteractionsimulationhandler functionality for the Hytale server.

java.lang.Object > NPCInteractionSimulationHandler

Field Summary

requestedChargeTime

private float requestedChargeTime

Field requestedChargeTime.

Method Detail

setState

public void setState (final InteractionType type, final boolean state)

Method setState.

Parameters:
final InteractionType type
final boolean state

isCharging

public boolean isCharging (final boolean firstRun, final float time, final InteractionType type, final InteractionContext context, final Ref ref, final CooldownHandler cooldownHandler)

Method isCharging.

Parameters:
final boolean firstRun
final float time
final InteractionType type
final InteractionContext context
final Ref ref
final CooldownHandler cooldownHandler

shouldCancelCharging

public boolean shouldCancelCharging (final boolean firstRun, final float time, final InteractionType type, final InteractionContext context, final Ref ref, final CooldownHandler cooldownHandler)

Method shouldCancelCharging.

Parameters:
final boolean firstRun
final float time
final InteractionType type
final InteractionContext context
final Ref ref
final CooldownHandler cooldownHandler

getChargeValue

public float getChargeValue (final boolean firstRun, final float time, final InteractionType type, final InteractionContext context, final Ref ref, final CooldownHandler cooldownHandler)

Method getChargeValue.

Parameters:
final boolean firstRun
final float time
final InteractionType type
final InteractionContext context
final Ref ref
final CooldownHandler cooldownHandler

requestChargeTime

public void requestChargeTime (final float chargeTime)

Method requestChargeTime.

Parameters:
final float chargeTime