public interface IAction
The IAction interface, and the *Action classes (CombatAction/DrinkItemAction/etc) correspond to actions that your character performs in the world.
To perform an action, create the appropriate action object, and call sendAction(..) from the client class:
// where somePlayer is a nearby player from the worldState object. CombatAction ca = new CombatAction (somePlayer); sendAction(ca);
|Modifier and Type||Interface and Description|
To determine which type/class the action is, call getActionType() on an IAction.
Copyright © 2018 the original author or authors.