SensorInflictedDamage

public class SensorInflictedDamage extends SensorBase

Class SensorInflictedDamage. Provides sensorinflicteddamage functionality for the Hytale server.

java.lang.Object > SensorBase > SensorInflictedDamage

Field Summary

npcComponent

final NPCEntity npcComponent

Field npcComponent.

npcFlock

final Flock npcFlock

Field npcFlock.

victimReference

final Ref victimReference

Field victimReference.

flockReference

final Ref flockReference

Field flockReference.

entityGroupComponent

final EntityGroup entityGroupComponent

Field entityGroupComponent.

Method Detail

SensorInflictedDamage

public public SensorInflictedDamage (@Nonnull final BuilderSensorInflictedDamage builder)

Method SensorInflictedDamage.

Parameters:
@Nonnull final BuilderSensorInflictedDamage builder

matches

public boolean matches (@Nonnull final Ref ref, @Nonnull final Role role, final double dt, @Nonnull final Store store)

Method matches.

Parameters:
@Nonnull final Ref ref
@Nonnull final Role role
final double dt
@Nonnull final Store store

getSensorInfo

public InfoProvider getSensorInfo ()

Method getSensorInfo.

inSameFlock

static boolean inSameFlock (@Nonnull final Ref selfReference, @Nonnull final Ref target, @Nonnull final Store store)

Method inSameFlock.

Parameters:
@Nonnull final Ref selfReference
@Nonnull final Ref target
@Nonnull final Store store

Target

public private Target (final String description)

Method Target.

Parameters:
final String description

get

public String get ()

Method get.