Class HeadMotionAim
java.lang.Object
com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
com.hypixel.hytale.server.npc.corecomponents.MotionBase
com.hypixel.hytale.server.npc.corecomponents.HeadMotionBase
com.hypixel.hytale.server.npc.corecomponents.combat.HeadMotionAim
- All Implemented Interfaces:
HeadMotion,Motion,RoleStateChange,IAnnotatedComponent
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AimingDataprotected static final ComponentType<EntityStore, BoundingBox> protected final booleanprotected final doubleprotected Ref<EntityStore> protected static final ComponentType<EntityStore, ModelComponent> protected final doubleprotected final doubleprotected doubleprotected doubleprotected doubleprotected static final ComponentType<EntityStore, TransformComponent> Fields inherited from class com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
index, parent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(Ref<EntityStore> ref, Role role, ComponentAccessor<EntityStore> componentAccessor) booleancomputeSteering(Ref<EntityStore> ref, Role support, InfoProvider sensorInfo, double dt, Steering desiredSteering, ComponentAccessor<EntityStore> componentAccessor) voidpreComputeSteering(Ref<EntityStore> ref, Role role, InfoProvider sensorInfo, Store<EntityStore> store) Methods inherited from class com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
getIndex, getInfo, getParent, setContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.server.npc.util.IAnnotatedComponent
getBreadCrumbs, getBreadCrumbs, getIndex, getInfo, getLabel, getParent, setContextMethods inherited from interface com.hypixel.hytale.server.npc.instructions.Motion
deactivateMethods inherited from interface com.hypixel.hytale.server.npc.instructions.RoleStateChange
loaded, motionControllerChanged, registerWithSupport, removed, spawned, teleported, unloaded
-
Field Details
-
TRANSFORM_COMPONENT_TYPE
-
MODEL_COMPONENT_TYPE
-
BOUNDING_BOX_COMPONENT_TYPE
-
spread
protected final double spread -
deflection
protected final boolean deflection -
hitProbability
protected final double hitProbability -
relativeTurnSpeed
protected final double relativeTurnSpeed -
aimingData
-
lastTargetReference
-
spreadX
protected double spreadX -
spreadY
protected double spreadY -
spreadZ
protected double spreadZ
-
-
Constructor Details
-
HeadMotionAim
-
-
Method Details
-
preComputeSteering
public void preComputeSteering(@Nonnull Ref<EntityStore> ref, @Nonnull Role role, @Nullable InfoProvider sensorInfo, @Nonnull Store<EntityStore> store) -
activate
public void activate(@Nonnull Ref<EntityStore> ref, @Nonnull Role role, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
computeSteering
public boolean computeSteering(@Nonnull Ref<EntityStore> ref, @Nonnull Role support, @Nullable InfoProvider sensorInfo, double dt, @Nonnull Steering desiredSteering, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
-