Clear graphic effects on green flag ()

This commit is contained in:
Tim Mickel 2016-09-21 16:31:07 -04:00 committed by GitHub
parent f9efc2b4bc
commit aa5e8d2648
3 changed files with 18 additions and 0 deletions
src/engine

View file

@ -27,6 +27,12 @@ function Target (blocks) {
this.blocks = blocks;
}
/**
* Called when the project receives a "green flag."
* @abstract
*/
Target.prototype.onGreenFlag = function () {};
/**
* Return a human-readable name for this target.
* Target implementations should override this.