/***********************************************************************************************************
 * su.bot.checkers.javascript.Gamer
 * Location: http://www.bot.su/library/su/bot/checkers/javascript/Gamer.js
 * Index Version Location: http://www.bot.su/library/su/bot/checkers/javascript/gamer/index.html
 * © Bot.Su (http://www.bot.su/)
***********************************************************************************************************/

if (typeof su == "undefined") {su = {};};
if (typeof su.bot == "undefined") {su.bot = {};};
if (typeof su.bot.checkers == "undefined") {su.bot.checkers = {};};
if (typeof su.bot.checkers.javascript == "undefined") {su.bot.checkers.javascript = {};};

if (typeof su.bot.checkers.javascript.Gamer == "undefined") {
 su.bot.checkers.javascript.Gamer = function() {}; 
 su.bot.checkers.javascript.Gamer.prototype = new com.oclib.javascript.lang.Root();

 su.bot.checkers.javascript.Gamer.prototype.className = "Gamer"; 
 su.bot.checkers.javascript.Gamer.prototype.classNamespace = "su.bot.checkers.javascript.Gamer"; 
 su.bot.checkers.javascript.Gamer.prototype.classCreated = "20070403"; 
 su.bot.checkers.javascript.Gamer.prototype.classCreator = "http://www.bot.su/"; 
 su.bot.checkers.javascript.Gamer.prototype.classLocation = "http://www.bot.su/library/su/bot/checkers/javascript/Gamer.js"; 
 su.bot.checkers.javascript.Gamer.prototype.classIndexLocation = "http://www.bot.su/library/su/bot/checkers/javascript/gamer/index.html"; 
 su.bot.checkers.javascript.Gamer.prototype.classVersion = "20070528"; 
 su.bot.checkers.javascript.Gamer.prototype.classVersionLocation = "http://www.bot.su/library/su/bot/checkers/javascript/gamer/builds/20070528/Gamer.js"; 
 su.bot.checkers.javascript.Gamer.prototype.classVersionIndexLocation = "http://www.bot.su/library/su/bot/checkers/javascript/gamer/index.html"; 
 
 su.bot.checkers.javascript.Gamer.prototype.currentNode = null;
  su.bot.checkers.javascript.Gamer.prototype.getCurrentNode = function () {return this.currentNode;};
  su.bot.checkers.javascript.Gamer.prototype.setCurrentNode = function (currentNode) {this.currentNode = currentNode;};  
 su.bot.checkers.javascript.Gamer.prototype.environment;
  su.bot.checkers.javascript.Gamer.prototype.getEnvironment = function () {return this.environment;};
  su.bot.checkers.javascript.Gamer.prototype.setEnvironment = function (environment) {this.environment = environment;}; 
 su.bot.checkers.javascript.Gamer.prototype.name; /*"min", "max"*/
  su.bot.checkers.javascript.Gamer.prototype.getName = function () {return this.name;};
  su.bot.checkers.javascript.Gamer.prototype.setName = function (name) {this.name = name;}; 
 su.bot.checkers.javascript.Gamer.prototype.runing = false;
  su.bot.checkers.javascript.Gamer.prototype.getRuning = function () {return this.runing;};
  su.bot.checkers.javascript.Gamer.prototype.setRuning = function (runing) {this.runing = runing;}; 
 su.bot.checkers.javascript.Gamer.prototype.runTimer;
  su.bot.checkers.javascript.Gamer.prototype.getRunTimer = function () {return this.runTimer;};
  su.bot.checkers.javascript.Gamer.prototype.setRunTimer = function (runTimer) {this.runTimer = runTimer;}; 
  
 su.bot.checkers.javascript.Gamer.prototype.doMove = function() {
  if(this.mustTrace()) {this.getLog().println("su.bot.checkers.javascript.Gamer.doMove is runing...");};
 };  
  
 su.bot.checkers.javascript.Gamer.prototype.init = function() {
  if(this.mustTrace()) {this.getLog().println("su.bot.checkers.javascript.Gamer.reset is runing for "+this.getName());};
  this.currentNode = null;
 }; 
  
 su.bot.checkers.javascript.Gamer.prototype.run = function() {
  if(this.mustTrace()) {this.getLog().println("su.bot.checkers.javascript.Gamer.run is runing for "+this.getName());};
 }; 
  
 su.bot.checkers.javascript.Gamer.prototype.end = function() {
  if(this.mustTrace()) {this.getLog().println("su.bot.checkers.javascript.Gamer.end is runing for "+this.getName());};
  this.setRuning(false);
  try {
   if(this.mustTrace()) {this.getLog().println("su.bot.checkers.javascript.Gamer.end this.getRunTimer() ("+this.getName()+")="+this.getRunTimer());};
   clearTimeout(this.getRunTimer())
  } catch (e) {
  };
 }; 
};
