public class StateCombatAction extends CombatActionOption
Class StateCombatAction. Provides statecombataction functionality for the Hytale server.
java.lang.Object > CombatActionOption > StateCombatAction
Field Summary
state
protected
String
state
Field state.
subState
protected
String
subState
Field subState.
ref
final
Ref
ref
Field ref.
ctx
final
HytaleLogger.Api
ctx
Field ctx.
Method Detail
getState
public
String
getState
()
Method getState.
getSubState
public
String
getSubState
()
Method getSubState.
execute
public
void
execute
(final int index, @Nonnull final ArchetypeChunk archetypeChunk, final CommandBuffer commandBuffer, @Nonnull final Role role, @Nonnull final CombatActionEvaluator evaluator, final ValueStore valueStore)
Method execute.
- Parameters:
final intindex@Nonnull final ArchetypeChunkarchetypeChunkfinal CommandBuffercommandBuffer@Nonnull final Rolerole@Nonnull final CombatActionEvaluatorevaluatorfinal ValueStorevalueStore
isBasicAttackAllowed
public
boolean
isBasicAttackAllowed
(final int selfIndex, final ArchetypeChunk archetypeChunk, final CommandBuffer commandBuffer, final CombatActionEvaluator evaluator)
Method isBasicAttackAllowed.
- Parameters:
final intselfIndexfinal ArchetypeChunkarchetypeChunkfinal CommandBuffercommandBufferfinal CombatActionEvaluatorevaluator
toString
public
String
toString
()
Method toString.