Contents
- Description
- Method Summary
- Method Details
- setState(InteractionType, boolean)
- isCharging(boolean, float, InteractionType, InteractionContext, Ref, CooldownHandler)
- shouldCancelCharging(boolean, float, InteractionType, InteractionContext, Ref, CooldownHandler)
- getChargeValue(boolean, float, InteractionType, InteractionContext, Ref, CooldownHandler)
Interface IInteractionSimulationHandler
- All Known Implementing Classes:
InteractionSimulationHandler, NPCInteractionSimulationHandler
public interface IInteractionSimulationHandler
Created on 25/05/2020
-
Method Summary
Modifier and TypeMethodDescriptionfloatgetChargeValue(boolean firstRun, float time, InteractionType type, InteractionContext context, Ref<EntityStore> ref, CooldownHandler cooldownHandler) booleanisCharging(boolean firstRun, float time, InteractionType type, InteractionContext context, Ref<EntityStore> ref, CooldownHandler cooldownHandler) voidsetState(InteractionType type, boolean state) booleanshouldCancelCharging(boolean firstRun, float time, InteractionType type, InteractionContext context, Ref<EntityStore> ref, CooldownHandler cooldownHandler)
-
Method Details
-
setState
-
isCharging
boolean isCharging(boolean firstRun, float time, InteractionType type, InteractionContext context, Ref<EntityStore> ref, CooldownHandler cooldownHandler) -
shouldCancelCharging
boolean shouldCancelCharging(boolean firstRun, float time, InteractionType type, InteractionContext context, Ref<EntityStore> ref, CooldownHandler cooldownHandler) - Returns:
- Returns
trueif charging should be canceled. On the client side this is handled when any other button (except the current "type") is pressed down.
-
getChargeValue
float getChargeValue(boolean firstRun, float time, InteractionType type, InteractionContext context, Ref<EntityStore> ref, CooldownHandler cooldownHandler)
-