As one of our core principles of being backward compatible, this code will always run.
Here is a list of deprecated, but still functional, code.
// Old global variable, now points to the new global variable: var ABRun = AB; // Some APIs used these global variables, which now point to the new global variables: var threeworld = ABWorld; var threehandler = ABHandler;
function World() { this.nextStep = function() { ... }; } function Mind() { this.getAction = function ( state ) { ... }; }That will still work. But now we say it is not necessary to define a class, and you can just go ahead and define methods. So the above is replaced by:
AB.world.nextStep = function() { ... }; AB.mind.getAction = function ( state ) { ... };
AB.world.saveData = function () { ... }; // Return what object to save to the server AB.world.queryDataExists = function ( boolean ) { ... }; // Do something once we find out if data exists AB.world.restoreData = function ( object ) { ... }; // Process the object that was recovered from server AB.world.getAllData = function ( array ) { ... }; // Process the array that was recovered from server
AB.world.endCondition = false; // Setting this to true ends the run // Some Worlds write direct to areas in the run header instead of using AB.msg(): $("#user_span1").html ( message );