Add start of test framework for plugins

Adds a basic testing framework suitable for plugins that start simple
Actions for players, which can be expanded on in the future.  The
banking and training dummy tests have been updated to use this framework
and serve as samples.
This commit is contained in:
Gary Tierney
2017-06-19 02:50:50 +01:00
parent d0fec15a84
commit b536b2ed9d
8 changed files with 248 additions and 1 deletions
@@ -71,7 +71,7 @@ public abstract class ScheduledTask {
/**
* Pulses this task: updates the delay and calls {@link #execute()} if necessary.
*/
final void pulse() {
public final void pulse() {
if (running && --pulses <= 0) {
execute();
pulses = delay;