コード例 #1
0
ファイル: Ship.cs プロジェクト: AndyWardle/Battleships
        public static Ship CreateBattleShip(Player owner)
        {
            var ship = new Ship(ShipType.Battleship, owner);
            owner.AddShip(ship);

            return ship;
        }
コード例 #2
0
        public static Ship CreateBattleShip(Player owner)
        {
            var ship = new Ship(ShipType.Battleship, owner);

            owner.AddShip(ship);

            return(ship);
        }
コード例 #3
0
        public static Ship CreateDestroyer(Player owner)
        {
            var ship = new Ship(ShipType.Destroyer, owner);

            owner.AddShip(ship);

            return(ship);
        }
コード例 #4
-1
ファイル: Ship.cs プロジェクト: AndyWardle/Battleships
        public static Ship CreateDestroyer(Player owner)
        {
            var ship = new Ship(ShipType.Destroyer, owner);
            owner.AddShip(ship);

            return ship;
        }