Exemple #1
0
        /// <summary>
        /// Assigns ships to the game
        /// </summary>
        private void AssignShipsToGame()
        {
            var ships = new ShipsForGame <Type, int>();

            ships.Add(typeof(BattleShip), NO_OF_BATTLESHIPS);
            ships.Add(typeof(Destroyer), NO_OF_DESTROYERS);
            ShipsForGame = ships;
        }
Exemple #2
0
 /// <summary>
 /// Assigns ships to the game
 /// </summary>
 private void AssignShipsToGame()
 {
     var ships = new ShipsForGame<Type, int>();
     ships.Add(typeof(BattleShip), NO_OF_BATTLESHIPS);
     ships.Add(typeof(Destroyer), NO_OF_DESTROYERS);
     ShipsForGame = ships;
 }