Option

abstract class Option

Class Option. Provides option functionality for the Hytale server.

java.lang.Object > Option

Field Summary

description

protected String description

Field description.

conditions

protected String[] conditions

Field conditions.

weightCoefficient

protected double weightCoefficient

Field weightCoefficient.

sortedConditions

protected ConditionReference[] sortedConditions

Field sortedConditions.

condition

final Condition condition

Field condition.

npcComponent

final NPCEntity npcComponent

Field npcComponent.

uuidComponent

final UUIDComponent uuidComponent

Field uuidComponent.

compensationFactor

final double compensationFactor

Field compensationFactor.

score

final double score

Field score.

logContext

final HytaleLogger.Api logContext

Field logContext.

reference

private WeakReference reference

Field reference.

Method Detail

Option

public protected Option ()

Method Option.

getConditions

public String[] getConditions ()

Method getConditions.

getWeightCoefficient

public double getWeightCoefficient ()

Method getWeightCoefficient.

sortConditions

public void sortConditions ()

Method sortConditions.

ConditionReference

public new ConditionReference (Condition.getAssetMap()

Method ConditionReference.

Parameters:
Condition.getAssetMap( Condition.getAssetMap(

setupNPC

public void setupNPC (final Role role)

Method setupNPC.

Parameters:
final Role role

calculateUtility

public double calculateUtility (final int selfIndex, @Nonnull final ArchetypeChunk archetypeChunk, final Ref target, final CommandBuffer commandBuffer, @Nonnull final EvaluationContext context)

Method calculateUtility.

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

toString

public String toString ()

Method toString.

get

private Condition get ()

Method get.

getSimplicity

private int getSimplicity ()

Method getSimplicity.