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