|
RuneHive-Game
|
Public Member Functions | |
| ConsecutiveAction (T mob) | |
Generates a new ConsecutiveAction object. | |
| void | execute () |
| Public Member Functions inherited from com.runehive.game.action.Action< T > | |
| Action (T mob, int delay, boolean instant) | |
Creates a new Action randomevent. | |
| boolean | cancellableInProgress () |
| T | getMob () |
| Gets the player. | |
| abstract String | getName () |
| Gets the name of this action. | |
| abstract WalkablePolicy | getWalkablePolicy () |
| Gets the WalkablePolicy of this action. | |
| boolean | prioritized () |
| Determines if this action is prioritized. | |
Protected Member Functions | |
| void | add (Consumer< Action< T > > action) |
Adds an action to the actions list. | |
| void | addFirst (Consumer< Action< T > > action) |
Adds an action to the actions list. | |
Private Attributes | |
| LinkedList< Consumer< Action< T > > > | actions = new LinkedList<>() |
| The list of actions. | |
Definition at line 8 of file ConsecutiveAction.java.
| com.runehive.game.action.ConsecutiveAction< T extends Mob >.ConsecutiveAction | ( | T | mob | ) |
Generates a new ConsecutiveAction object.
| mob | The mob to apply this action to. |
Definition at line 19 of file ConsecutiveAction.java.
References com.runehive.game.action.Action< T >.mob.
|
protected |
Adds an action to the actions list.
| action | The action. |
Definition at line 35 of file ConsecutiveAction.java.
References com.runehive.game.action.Action< T >.Action(), and actions.
Referenced by com.runehive.game.action.impl.TeleportAction.init().
|
protected |
Adds an action to the actions list.
| action | The action. |
Definition at line 43 of file ConsecutiveAction.java.
References com.runehive.game.action.Action< T >.Action(), and actions.
Referenced by com.runehive.game.action.impl.TeleportAction.start().
| void com.runehive.game.action.ConsecutiveAction< T extends Mob >.execute | ( | ) |
Definition at line 24 of file ConsecutiveAction.java.
References actions.
|
private |
The list of actions.
Definition at line 11 of file ConsecutiveAction.java.
Referenced by add(), addFirst(), and execute().