public void kill() { this.isAlive = false; if(this.currentTile != null) { this.currentTile.currentUnit = null; } this.currentTile = null; this.column = -1; this.row = -1; }
public void placeOnTile(Tile tile) { this.currentTile = tile; tile.currentUnit = this; this.moveTo(tile.column, tile.row); }