function World() { this.newRun = function() { // Code for Three.js initial drawing of objects. // Should include one of: // ABWorld.init2d ( arguments ); // ABWorld.init3d ( arguments ); }; this.takeAction = function ( action ) { // Code for Three.js re-drawing of objects. }; this.endRun = function() { }; this.getState = function() { return ( 0 ); }; this.getScore = function() { return ( 0 ); }; }