Beispiel #1
0
 public Ship(int posX, int posY, int size, bool horizontal, Map map)
 {
     this.posX = posX;
     this.posY = posY;
     this.size = size;
     this.isHorizontal = horizontal;
     this.map = map;
 }
Beispiel #2
0
 public void GameSetup()
 {
     Console.WriteLine("  Your map    Enemy map");
     shipsPlaced = false;
     yourMap = new Map(1, 2, 10, 10);
     enemyMap = new Map(13, 2, 10, 10);
     yourMap.Draw();
     enemyMap.Draw();
 }
Beispiel #3
0
 public Frigate(int posX, int posY, bool horizontal, Map map)
     : base(posX, posY, 3, horizontal, map)
 {
 }
Beispiel #4
0
 public Cruiser(int posX, int posY, bool horizontal, Map map)
     : base(posX, posY, 4, horizontal, map)
 {
 }
Beispiel #5
0
 public Battleship(int posX, int posY, bool horizontal, Map map)
     : base(posX, posY, 5, horizontal, map)
 {
 }
 public Minesweeper(int posX, int posY, bool horizontal, Map map)
     : base(posX, posY, 2, horizontal, map)
 {
 }