public class CombatSupport
Class CombatSupport. Provides combatsupport functionality for the Hytale server.
java.lang.Object > CombatSupport
Field Summary
activeAttack
protected
InteractionChain
activeAttack
Field activeAttack.
dealFriendlyDamage
protected
boolean
dealFriendlyDamage
Field dealFriendlyDamage.
attackPause
protected
double
attackPause
Field attackPause.
attackOverrideIndex
protected
int
attackOverrideIndex
Field attackOverrideIndex.
flockReference
final
Ref
flockReference
Field flockReference.
entityGroupComponent
final
EntityGroup
entityGroupComponent
Field entityGroupComponent.
npcComponent
final
NPCEntity
npcComponent
Field npcComponent.
index
final
int
index
Field index.
Method Detail
CombatSupport
public
public
CombatSupport
(final NPCEntity parent, @Nonnull final BuilderRole builder, @Nonnull final BuilderSupport support)
Method CombatSupport.
- Parameters:
final NPCEntityparent@Nonnull final BuilderRolebuilder@Nonnull final BuilderSupportsupport
isDealingFriendlyDamage
public
boolean
isDealingFriendlyDamage
()
Method isDealingFriendlyDamage.
getDisableDamageGroups
public
int[]
getDisableDamageGroups
()
Method getDisableDamageGroups.
isExecutingAttack
public
boolean
isExecutingAttack
()
Method isExecutingAttack.
tick
public
void
tick
(final double dt)
Method tick.
- Parameters:
final doubledt
getCanCauseDamage
public
boolean
getCanCauseDamage
(@Nonnull final Ref attackerRef, @Nonnull final ComponentAccessor componentAccessor)
Method getCanCauseDamage.
- Parameters:
@Nonnull final RefattackerRef@Nonnull final ComponentAccessorcomponentAccessor
setExecutingAttack
public
void
setExecutingAttack
(final InteractionChain chain, final boolean damageFriendlies, final double attackPause)
Method setExecutingAttack.
- Parameters:
final InteractionChainchainfinal booleandamageFriendliesfinal doubleattackPause
addAttackOverride
public
void
addAttackOverride
(final String attackSequence)
Method addAttackOverride.
- Parameters:
final StringattackSequence
clearAttackOverrides
public
void
clearAttackOverrides
()
Method clearAttackOverrides.
getNextAttackOverride
public
String
getNextAttackOverride
()
Method getNextAttackOverride.