function TrackingDisplay($display) {
		//Store the canvas element for this display
		this.$display = $display;

		//Retrieve and store the 2d drawing context for this canvas
		this.drawContext = $display[0].getContext('2d');

		//Store the dimensions of the current display element.
		this.width = $display.width();
		this.height = $display.height();

		//Determine which axis is the constraining axis for this canvas so we can ensure our displays are squares.
		if (this.width < this.height) {
			this.height = this.width;
		} else {
			this.width = this.height;
		}

		//Apply the new dimensions
		$display.height(this.height).width(this.width).attr("width", this.width).attr("height", this.height);

		//Multidimensional array of values from the CELL_STATE variable representing the state of each cell.
		this.gridState = [];

		//Multidimensional array of any values. Used just to contain data related to each cell. At the moment, this only used
		//to specify the type of ship in a "SHIP" cell.
		this.gridData = [];

		//Declare the hasInit flag, for controlling when the initialization logic fires
		this.hasInit = false;
	}
//Constructor function for TrackingDisplay "class"
Constructor function for TrackingDisplay "class"
Constructor function for TrackingDisplay " class "
function TrackingDisplay($display) {
		this.$display = $display;
		this.drawContext = $display[0].getContext('2d');
		this.width = $display.width();
		this.height = $display.height();
		if (this.width < this.height) {
			this.height = this.width;
		} else {
			this.width = this.height;
		}
		$display.height(this.height).width(this.width).attr("width", this.width).attr("height", this.height);
		this.gridState = [];
		this.gridData = [];
		this.hasInit = false;
	}
function TrackingDisplay ( $display ) { this . $display = $display ; this . drawContext = $display [ 0 ] . getContext ( '2d' ) ; this . width = $display . width ( ) ; this . height = $display . height ( ) ; if ( this . width < this . height ) { this . height = this . width ; } else { this . width = this . height ; } $display . height ( this . height ) . width ( this . width ) . attr ( "width" , this . width ) . attr ( "height" , this . height ) ; this . gridState = [ ] ; this . gridData = [ ] ; this . hasInit = false ; }
Constructor function for TrackingDisplay "class"
Constructor function for TrackingDisplay " class "
//Store the canvas element for this display //Retrieve and store the 2d drawing context for this canvas //Store the dimensions of the current display element. //Determine which axis is the constraining axis for this canvas so we can ensure our displays are squares. //Apply the new dimensions //Multidimensional array of values from the CELL_STATE variable representing the state of each cell. //Multidimensional array of any values. Used just to contain data related to each cell. At the moment, this only used //to specify the type of ship in a "SHIP" cell. //Declare the hasInit flag, for controlling when the initialization logic fires