//Classe DrWho extends Player
function DrWho ( drWhoID ) {

	function move( x,y ){
	
		 //Position x:	 
		 if ( x > this._x && ( this._x < GRID_RIGHT - 1 ) ) {
		 	
		 	this._x++;
		 	
		 } else if ( x < this._x && ( this._x > GRID_LEFT ) ) {
		 
		 	this._x--;
		 	
		 }
		 		 
		 //Position y:	 
		 if ( y > this._y && ( this._y < GRID_BOTTOM - 1 ) ) {
		 
		 	this._y++;
		 	
		 } else if ( y < this._y && ( this._y > GRID_TOP ) ) {
		 
		 	this._y--;

		 }	 
		  
	}		
	
	function teleport ( ) {		
	
		this._x = Math.floor(Math.random()*gridX);
		this._y = Math.floor(Math.random()*gridY);
		
	}
	
	this.teleport = teleport;
	this.move  = move;
	this._type = "drwho";
	this._id   = drWhoID;

}

