(position, value)
| 1 | function Tile(position, value) { |
| 2 | this.x = position.x; |
| 3 | this.y = position.y; |
| 4 | this.value = value || 2; |
| 5 | |
| 6 | this.previousPosition = null; |
| 7 | this.mergedFrom = null; // Tracks tiles that merged together |
| 8 | } |
| 9 | |
| 10 | Tile.prototype.savePosition = function () { |
| 11 | this.previousPosition = { x: this.x, y: this.y }; |
nothing calls this directly
no outgoing calls
no test coverage detected