void MarkTiles(IEnumerable <Coordinate> coordinates, Matrix.TileMatrix tileMatrix, Ship ship) { coordinates.ForEach(x => { var tile = (PlayerTile)tileMatrix.GetTile(x); tile.AssignShip(ship); }); }
public Battle(Matrix.TileMatrix playerTileMatrix, Matrix.TileMatrix enemyTileMatrix, ShipRandomFiller shipRandomFiller) { _shipRandomFiller = shipRandomFiller; PlayerTileMatrix = playerTileMatrix; EnemyTileMatrix = enemyTileMatrix; }