コード例 #1
0
ファイル: ShipFactory.cs プロジェクト: ysedletskaya/SeaFight
 public IShip GetSingle()
 {
     SimpleShip ship = new SimpleShip(1);
     return ship;
 }
コード例 #2
0
ファイル: ShipFactory.cs プロジェクト: ysedletskaya/SeaFight
 public IShip GetTriple()
 {
     SimpleShip ship = new SimpleShip(3);
     return ship;
 }
コード例 #3
0
ファイル: ShipFactory.cs プロジェクト: ysedletskaya/SeaFight
 public IShip GetDouble()
 {
     SimpleShip ship = new SimpleShip(2);
     return ship;
 }