public class AbilityCombatAction extends CombatActionOption
Class AbilityCombatAction. Provides abilitycombataction functionality for the Hytale server.
java.lang.Object > CombatActionOption > AbilityCombatAction
Field Summary
ability
Field ability.
abilityType
Field abilityType.
chargeFor
Field chargeFor.
attackRange
Field attackRange.
maxRangeSquared
Field maxRangeSquared.
weaponSlot
Field weaponSlot.
offhandSlot
Field offhandSlot.
failureTimeout
Field failureTimeout.
subState
Field subState.
damageFriendlies
Field damageFriendlies.
requireAiming
Field requireAiming.
positioning
Field positioning.
positionFirst
Field positionFirst.
chargeDistance
Field chargeDistance.
npcComponent
Field npcComponent.
randomAngle
Field randomAngle.
chosenAngle
Field chosenAngle.
ref
Field ref.
interaction
Field interaction.
interactionManagerComponent
Field interactionManagerComponent.
interactionSimulationHandler
Field interactionSimulationHandler.
context
Field context.
chain
Field chain.
primaryTarget
Field primaryTarget.
primaryTargetTransformComponent
Field primaryTargetTransformComponent.
targetPos
Field targetPos.
selfTransformComponent
Field selfTransformComponent.
selfPos
Field selfPos.
distance
Field distance.
Method Detail
AbilityCombatAction
public
AbilityCombatAction
()
Method AbilityCombatAction.
getAbility
String
getAbility
()
Method getAbility.
getChargeFor
float
getChargeFor
()
Method getChargeFor.
getAttackRange
double[]
getAttackRange
()
Method getAttackRange.
getWeaponSlot
int
getWeaponSlot
()
Method getWeaponSlot.
getOffhandSlot
int
getOffhandSlot
()
Method getOffhandSlot.
getFailureTimeout
float
getFailureTimeout
()
Method getFailureTimeout.
isDamageFriendlies
boolean
isDamageFriendlies
()
Method isDamageFriendlies.
isPositionFirst
boolean
isPositionFirst
()
Method isPositionFirst.
execute
void
execute
(final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final CommandBuffer commandBuffer, @Nonnull final Role role, @Nonnull final CombatActionEvaluator evaluator, @Nonnull final ValueStore valueStore)
Method execute.
- Parameters:
final intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final CommandBuffercommandBuffer@Nonnull final Rolerole@Nonnull final CombatActionEvaluatorevaluator@Nonnull final ValueStorevalueStore
IllegalStateException
new
IllegalStateException
("Unexpected value: " + String.valueOf(this.positioning)
Method IllegalStateException.
- Parameters:
"Unexpected value: " +String.valueOf(this.positioning
isBasicAttackAllowed
boolean
isBasicAttackAllowed
(final int selfIndex, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final CommandBuffer commandBuffer, @Nonnull final CombatActionEvaluator evaluator)
Method isBasicAttackAllowed.
- Parameters:
final intselfIndex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final CommandBuffercommandBuffer@Nonnull final CombatActionEvaluatorevaluator
toString
String
toString
()
Method toString.
interaction
The
interaction
(ability)
Method interaction.
- Parameters:
abilityability
weapon
The
weapon
(hotbar)
Method weapon.
- Parameters:
hotbarhotbar