function Mind() { this.newRun = function() { }; this.getAction = function ( state ) { console.log(state); }; this.endRun = function() { }; }