LineOfSightCondition

public class LineOfSightCondition extends SimpleCondition

Class LineOfSightCondition. Provides lineofsightcondition functionality for the Hytale server.

java.lang.Object > SimpleCondition > LineOfSightCondition

Field Summary

selfRef

final Ref selfRef

Field selfRef.

selfNpcComponent

final NPCEntity selfNpcComponent

Field selfNpcComponent.

positionCache

final PositionCache positionCache

Field positionCache.

Method Detail

getSimplicity

public int getSimplicity ()

Method getSimplicity.

evaluate

protected boolean evaluate (final int selfIndex, @Nonnull final ArchetypeChunk archetypeChunk, @Nullable final Ref targetRef, @Nonnull final CommandBuffer commandBuffer, final EvaluationContext context)

Method evaluate.

Parameters:
final int selfIndex
@Nonnull final ArchetypeChunk archetypeChunk
@Nullable final Ref targetRef
@Nonnull final CommandBuffer commandBuffer
final EvaluationContext context