|
RuneHive-Game
|
Protected Member Functions | |
| boolean | canSchedule () |
| A function executed on registration. | |
| void | onCancel (boolean logout) |
| A function executed on cancellation. | |
| void | onSchedule () |
| A function executed on registration. | |
| void | tick () |
| Protected Member Functions inherited from com.runehive.game.task.Task | |
| void | baseExecute () |
Package Functions | |
| MysteryBoxEvent (Player player) | |
| Package Functions inherited from com.runehive.game.task.Task | |
| void | onException (Exception e) |
| A function executed on thrown exceptions. | |
| void | onLoop () |
| A function executed when iterated over. | |
| final synchronized void | process () |
| synchronized void | setRunning (boolean running) |
Private Member Functions | |
| double | getItemProbability (MysteryItem item) |
| MysteryItem | getNextItem () |
| void | move () |
| void | reward () |
Private Attributes | |
| List< MysteryItem > | allItems |
| List< MysteryItem > | items |
| final MysteryBoxManager | mysteryBox |
| final Player | player |
| int | speed |
Additional Inherited Members | |
| Public Member Functions inherited from com.runehive.game.task.TickableTask | |
| void | execute () |
| A function representing the unit of work that will be carried out. | |
| TickableTask (boolean instant, int delay) | |
| Public Member Functions inherited from com.runehive.game.task.Task | |
| Task | attach (Object newKey) |
| Attaches a new key. | |
| synchronized final void | cancel () |
| Cancels all subsequent executions. | |
| synchronized final void | cancel (boolean logout) |
| Cancels all subsequent executions. | |
| boolean | canRun () |
| Determines if the task can be ran. | |
| Optional< Object > | getAttachment () |
| String | getCreationStackTraceStr () |
| int | getDelay () |
| Long | getElapsedTimeFromRunStartTime () |
| Optional< Long > | getRunStartTime () |
| long | getTaskCreationTime () |
| String | getTaskId () |
| boolean | isInstant () |
| boolean | isRunning () |
| void | setDelay (int delay) |
| Sets the cyclic delay. | |
| void | setExecutionTime () |
| Task (boolean instant, int delay) | |
Creates a new Task. | |
| Task (int delay) | |
Creates a new Task that doesn't execute instantly. | |
Definition at line 13 of file MysteryBoxEvent.java.
|
package |
Definition at line 21 of file MysteryBoxEvent.java.
References player, and com.runehive.util.Utility.random().
|
protected |
A function executed on registration.
Reimplemented from com.runehive.game.task.Task.
Definition at line 95 of file MysteryBoxEvent.java.
|
private |
Definition at line 49 of file MysteryBoxEvent.java.
References com.runehive.content.mysterybox.MysteryItem.rarity.
Referenced by reward().
|
private |
Definition at line 38 of file MysteryBoxEvent.java.
References allItems, and items.
Referenced by move().
|
private |
Definition at line 30 of file MysteryBoxEvent.java.
References allItems, getNextItem(), and items.
|
protected |
A function executed on cancellation.
Reimplemented from com.runehive.game.task.Task.
Definition at line 124 of file MysteryBoxEvent.java.
References mysteryBox, player, and reward().
|
protected |
A function executed on registration.
Reimplemented from com.runehive.game.task.Task.
Definition at line 99 of file MysteryBoxEvent.java.
References allItems, items, mysteryBox, and player.
|
private |
Definition at line 66 of file MysteryBoxEvent.java.
References com.runehive.content.mysterybox.MysteryRarity.EXOTIC, com.runehive.util.Utility.getAOrAn(), getItemProbability(), items, mysteryBox, player, reward(), and com.runehive.game.world.World.sendMessage().
Referenced by onCancel(), and reward().
|
protected |
Reimplemented from com.runehive.game.task.TickableTask.
Definition at line 119 of file MysteryBoxEvent.java.
References com.runehive.game.task.Task.cancel().
|
private |
Definition at line 16 of file MysteryBoxEvent.java.
Referenced by getNextItem(), move(), and onSchedule().
|
private |
Definition at line 15 of file MysteryBoxEvent.java.
Referenced by getNextItem(), move(), onSchedule(), and reward().
|
private |
Definition at line 18 of file MysteryBoxEvent.java.
Referenced by onCancel(), onSchedule(), and reward().
|
private |
Definition at line 14 of file MysteryBoxEvent.java.
Referenced by MysteryBoxEvent(), onCancel(), onSchedule(), and reward().
|
private |
Definition at line 17 of file MysteryBoxEvent.java.