next level and id refactor

This commit is contained in:
Peter Cottle 2013-01-09 13:38:13 -08:00
parent d406317788
commit f0a9c66056
8 changed files with 416 additions and 210 deletions

View file

@ -180,8 +180,18 @@ var Sandbox = Backbone.View.extend({
});
},
resetSolved: function(command, deferred) {
Main.getLevelArbiter().resetSolvedMap();
command.addWarning(
"Solved map was reset, you are starting from a clean slate!"
);
deferred.resolve();
},
processSandboxCommand: function(command, deferred) {
var commandMap = {
'reset solved': this.resetSolved,
'general help': this.helpDialog,
'help': this.helpDialog,
'reset': this.reset,
'delay': this.delay,