DeployableAoeConfig

public class DeployableAoeConfig extends DeployableConfig

Class DeployableAoeConfig. Provides deployableaoeconfig functionality for the Hytale server.

java.lang.Object > DeployableConfig > DeployableAoeConfig

Field Summary

startRadius

protected float startRadius

Field startRadius.

endRadius

protected float endRadius

Field endRadius.

radiusChangeTime

protected float radiusChangeTime

Field radiusChangeTime.

damageInterval

protected float damageInterval

Field damageInterval.

damageAmount

protected float damageAmount

Field damageAmount.

damageCause

protected String damageCause

Field damageCause.

effectsToApply

protected String[] effectsToApply

Field effectsToApply.

attackOwner

protected boolean attackOwner

Field attackOwner.

attackTeam

protected boolean attackTeam

Field attackTeam.

attackEnemies

protected boolean attackEnemies

Field attackEnemies.

shape

protected Shape shape

Field shape.

height

protected float height

Field height.

processedDamageCause

protected DamageCause processedDamageCause

Field processedDamageCause.

position

final Vector3d position

Field position.

world

final World world

Field world.

entityRef

final Ref entityRef

Field entityRef.

radius

final float radius

Field radius.

deployableRef

final Ref deployableRef

Field deployableRef.

attackConsumer

final Consumer> attackConsumer

Field attackConsumer.

targetRefs

final List> targetRefs

Field targetRefs.

damageEntry

final Damage damageEntry

Field damageEntry.

effectController

final EffectControllerComponent effectController

Field effectController.

effectAsset

final EntityEffect effectAsset

Field effectAsset.

isOwner

final boolean isOwner

Field isOwner.

radiusDiff

final float radiusDiff

Field radiusDiff.

increment

final float increment

Field increment.

now

final Instant now

Field now.

timeDiff

final float timeDiff

Field timeDiff.

nowIncrement

final float nowIncrement

Field nowIncrement.

Method Detail

DeployableAoeConfig

public protected DeployableAoeConfig ()

Method DeployableAoeConfig.

tick

public void tick (@Nonnull final DeployableComponent deployableComponent, final float dt, final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)

Method tick.

Parameters:
@Nonnull final DeployableComponent deployableComponent
final float dt
final int index
@Nonnull final ArchetypeChunk archetypeChunk
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

handleDetection

protected void handleDetection (final Store store, final CommandBuffer commandBuffer, final Ref deployableRef, final DeployableComponent deployableComponent, final Vector3d position, final float radius, final DamageCause damageCause)

Method handleDetection.

Parameters:
final Store store
final CommandBuffer commandBuffer
final Ref deployableRef
final DeployableComponent deployableComponent
final Vector3d position
final float radius
final DamageCause damageCause

accept

public void accept (final Ref entityStoreRef)

Method accept.

Parameters:
final Ref entityStoreRef

handleDebugGraphics

protected void handleDebugGraphics (final World world, final Vector3f color, final Vector3d position, final float scale)

Method handleDebugGraphics.

Parameters:
final World world
final Vector3f color
final Vector3d position
final float scale

attackTarget

protected void attackTarget (final Ref targetRef, final Ref ownerRef, final DamageCause damageCause, final CommandBuffer commandBuffer)

Method attackTarget.

Parameters:
final Ref targetRef
final Ref ownerRef
final DamageCause damageCause
final CommandBuffer commandBuffer

Damage

public new Damage (new Damage.EntitySource(ownerRef)

Method Damage.

Parameters:
new Damage.EntitySource(ownerRef

applyEffectToTarget

protected void applyEffectToTarget (final Store store, final Ref targetRef)

Method applyEffectToTarget.

Parameters:
final Store store
final Ref targetRef

canAttackEntity

protected boolean canAttackEntity (final Ref target, final DeployableComponent deployable)

Method canAttackEntity.

Parameters:
final Ref target
final DeployableComponent deployable

getRadius

protected float getRadius (final Store store, final Instant startInstant)

Method getRadius.

Parameters:
final Store store
final Instant startInstant

getDamageCause

protected DamageCause getDamageCause ()

Method getDamageCause.

toString

public String toString ()

Method toString.

RadiusChangeTime

public the RadiusChangeTime (RadiusChangeTime must be set)

Method RadiusChangeTime.

Parameters:
RadiusChangeTime must be set

time

public The time (starting at spawn)

Method time.

Parameters:
starting at spawn