
function Game() {
	
	//Varialbles
	this.type = "";
	this.playgame = "";
	this.score = "";
	this.answer = "";
	this.hash = "";
	
	// Methods
	this.setGame = setGame;
	this.getGame = getGame;
	
	
	function setGame($type, $playgame, $score, $answer, $hash) {
		
		this.type = $type;
		this.playgame = $playgame;
		this.score = $score;
		this.answer = $answer;
		this.hash = $hash;
		
		//alert("setting->this.answer: " + this.answer);
		
	} // function
	
	function getGame() {
		
		//alert("get->this.answer: " + this.answer);
		return this.type + ";" + this.playgame + ";" + this.score + ";" + this.answer + ";" + this.hash;
		
	} // function
	
} // class

function setGame($type, $playgame, $score, $answer, $hash) {
	
	//alert("set->$answer: " + ($type) + ", " + ($playgame) + ", " + ($score) + ", " + ($answer) + ", " + ($hash));
	game.setGame($type, $playgame, $score, $answer, $hash);
	
} // function

function getGame() {
	
	return game.getGame();
	
} // function

