Exemple #1
0
        public bool Fire(Coordinate coord)
        {
        
            var target = Tiles[coord];

            target?.OnHit?.Invoke(coord);

            if (target == null) return false;
            switch (target.Status)
            {
                case TileStatus.Hit:
                case TileStatus.Sunk:
                    return true;
            }
            return false;
        }
Exemple #2
0
 public bool IsOpenOcean(Coordinate tile)
 {
     return  Tiles[tile].Status == TileStatus.OpenOcean;
 }