Contents
Class BodyMotionLand
java.lang.Object
com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
com.hypixel.hytale.server.npc.corecomponents.MotionBase
com.hypixel.hytale.server.npc.corecomponents.BodyMotionBase
com.hypixel.hytale.server.npc.corecomponents.movement.BodyMotionFindBase<AStarWithTarget>
com.hypixel.hytale.server.npc.corecomponents.movement.BodyMotionFindWithTarget
com.hypixel.hytale.server.npc.corecomponents.movement.BodyMotionFind
com.hypixel.hytale.server.npc.corecomponents.movement.BodyMotionLand
- All Implemented Interfaces:
BodyMotion, Motion, RoleStateChange, AStarEvaluator, DebugSupport.DebugFlagsChangeListener, IAnnotatedComponent
Created on 09/03/2020
-
Nested Class Summary
Nested classes/interfaces inherited from class BodyMotionFindBase
BodyMotionFindBase.DebugFlags -
Constructor Summary
ConstructorsConstructorDescriptionBodyMotionLand(BuilderBodyMotionLand builderMotionLand, BuilderSupport support) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanComputeMotion(Ref<EntityStore> ref, ExecutionSupport executionSupport, InfoProvider positionProvider, ComponentAccessor<EntityStore> componentAccessor) booleancomputeSteering(Ref<EntityStore> ref, ExecutionSupport executionSupport, InfoProvider infoProvider, double dt, Steering desiredSteering, ComponentAccessor<EntityStore> componentAccessor) Calculate desired steering for MotionController.Methods inherited from class BodyMotionFind
estimateToGoal, findBestPath, getDesiredTargetDistance, getDesiredTargetEntity, isGoalReachedMethods inherited from class BodyMotionFindWithTarget
activate, deactivate, forceRecomputePath, isGoalReached, mustRecomputePath, onBlockedPath, onNoPathFound, shouldDeferPathComputation, startComputePathMethods inherited from class BodyMotionFindBase
getRelaxedConstraints, onDebugFlagsChangedMethods inherited from class AnnotatedComponentBase
getIndex, getInfo, getParent, setContextMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BodyMotion
findWrappedBodyMotion, getSteeringMotionMethods inherited from interface IAnnotatedComponent
getBreadCrumbs, getBreadCrumbs, getIndex, getInfo, getLabel, getParent, setContextMethods inherited from interface Motion
preComputeSteeringMethods inherited from interface RoleStateChange
loaded, motionControllerChanged, registerWithSupport, removed, spawned, teleported, unloaded
-
Constructor Details
-
BodyMotionLand
public BodyMotionLand(@Nonnull BuilderBodyMotionLand builderMotionLand, @Nonnull BuilderSupport support)
-
-
Method Details
-
computeSteering
public boolean computeSteering(@Nonnull Ref<EntityStore> ref, @Nonnull ExecutionSupport executionSupport, @Nullable InfoProvider infoProvider, double dt, @Nonnull Steering desiredSteering, @Nonnull ComponentAccessor<EntityStore> componentAccessor) Description copied from interface:MotionCalculate desired steering for MotionController.- Specified by:
computeSteeringin interfaceMotion- Overrides:
computeSteeringin classBodyMotionFindBase<AStarWithTarget>- Parameters:
ref- The entity refexecutionSupport- TheExecutionSupportinfoProvider- SensorInfo with PositionProvider, PathProvider, etc. if requireddt- The interval in seconds for this calculationdesiredSteering- The computed steering force for the MotionControllercomponentAccessor- The entity store- Returns:
falsewhen the end condition has been reached,trueif must be called again to reach end condition or is infinite.
-
canComputeMotion
public boolean canComputeMotion(@Nonnull Ref<EntityStore> ref, @Nonnull ExecutionSupport executionSupport, @Nullable InfoProvider positionProvider, @Nonnull ComponentAccessor<EntityStore> componentAccessor) - Overrides:
canComputeMotionin classBodyMotionFind
-