refactor grid, gamemanager, tile

This commit is contained in:
Gabriele Cirulli
2014-03-22 16:24:11 +01:00
parent 4d294cf9b9
commit c48b92689d
3 changed files with 57 additions and 51 deletions
+9 -9
View File
@@ -16,12 +16,12 @@ Tile.prototype.updatePosition = function (position) {
this.y = position.y;
};
Tile.prototype.tileState = function () {
return {
position: {
x: this.x,
y: this.y
},
value: this.value
};
}
Tile.prototype.serialize = function () {
return {
position: {
x: this.x,
y: this.y
},
value: this.value
};
};