{"size": 1166, "ext": "js", "max_stars_repo_path": "map/ExpansionCell.js", "max_stars_repo_name": "IWasZeroCool/BuildItDesigner", "max_stars_repo_stars_event_min_datetime": "2016-05-15T16:14:02.000Z", "max_stars_repo_stars_event_max_datetime": "2016-05-15T16:14:02.000Z", "max_issues_repo_path": "map/ExpansionCell.js", "max_issues_repo_name": "IWasZeroCool/BuildItDesigner", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "map/ExpansionCell.js", "max_forks_repo_name": "IWasZeroCool/BuildItDesigner", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 35.3333333333, "max_line_length": 121, "alphanum_fraction": 0.7281303602}

function ExpansionCell(_x, _y, _width, _height, _cost) {
	
	this.x = _x;
	this.y = _y;
	this.width = _width;
	this.height = _height;
	this.cost = _cost;

}

ExpansionCell.prototype.loadExpansionCell = function(container) {
	var c = new createjs.Shape();
	c.name = "expansionCell ("+this.x+","+this.y+")";
	c.graphics.setStrokeStyle(1);
	c.graphics.setStrokeDash([10, 8], 3);
	c.graphics.beginStroke(DesignerConfig.expansionCell.borderDefaultColor);
	c.graphics.beginFill(DesignerConfig.expansionCell.bgDefaultColor);
	var x = this.x * DesignerConfig.cell.cellWidth;
	var y = this.y * DesignerConfig.cell.cellHeight;
	c.graphics.drawRect(x,
		y,
		this.width * DesignerConfig.cell.cellWidth,
		this.height * DesignerConfig.cell.cellHeight);
	container.addChild(c);
	var t = new createjs.Text("Expansion Cost: "+this.cost, "8pt Arial", DesignerConfig.expansionCell.descriptionTextColor);
	t.lineWidth = (this.width * DesignerConfig.cell.cellWidth) - (DesignerConfig.cell.cellWidth * 2);
	t.textAlign = "center";
	t.x = x + ((this.width * DesignerConfig.cell.cellWidth) / 2);
	t.y = y + ((this.height * DesignerConfig.cell.cellHeight) / 2);
	container.addChild(t);
};
