|
RuneHive-Game
|
Handles the blood chest event. More...
Public Member Functions | |
| BloodChestEvent () | |
| void | execute () |
| A function representing the unit of work that will be carried out. | |
| 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. | |
Private Attributes | |
| NavigableMap< Double, String > | timeToMessage |
Constructs a new BloodChestEvent. | |
Additional Inherited Members | |
| Protected Member Functions inherited from com.runehive.game.task.Task | |
| void | baseExecute () |
| boolean | canSchedule () |
| A function executed on registration. | |
| void | onCancel (boolean logout) |
| A function executed on cancellation. | |
| void | onSchedule () |
| A function executed on registration. | |
| 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) |
Handles the blood chest event.
Definition at line 16 of file BloodChestEvent.java.
| com.runehive.content.bloodmoney.BloodChestEvent.BloodChestEvent | ( | ) |
Definition at line 22 of file BloodChestEvent.java.
References timeToMessage.
| void com.runehive.content.bloodmoney.BloodChestEvent.execute | ( | ) |
A function representing the unit of work that will be carried out.
Reimplemented from com.runehive.game.task.Task.
Definition at line 33 of file BloodChestEvent.java.
References com.runehive.content.bloodmoney.BloodMoneyChest.active, com.runehive.util.Stopwatch.elapsedTime(), com.runehive.content.bloodmoney.BloodMoneyChest.finish(), com.runehive.util.Stopwatch.reset(), com.runehive.game.world.World.sendMessage(), com.runehive.content.bloodmoney.BloodMoneyChest.spawn(), com.runehive.content.bloodmoney.BloodMoneyChest.stopwatch, and timeToMessage.
|
private |
Constructs a new BloodChestEvent.
Definition at line 20 of file BloodChestEvent.java.
Referenced by BloodChestEvent(), and execute().