Guest User

Untitled

a guest
Mar 23rd, 2017
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.46 KB | None | 0 0
  1.  
  2.  
  3. #ifndef SAPER_PLANSZA_H
  4. #define SAPER_PLANSZA_H
  5.  
  6. #include "Pole.h"
  7.  
  8.  
  9.  
  10. class Plansza {
  11.     Pole** plansza;
  12.  
  13.     int M;
  14.     int N;
  15.  
  16.     bool koniec_gry;
  17.  
  18. public:
  19.     Plansza(int wysokosc, int szeroksc);
  20.  
  21.     void deployMines(int n, bool random);
  22.     void debug_display();
  23.  
  24.     bool hasMine(int x, int y);
  25.     int countMines(int x, int y);
  26.  
  27.     void display();
  28.     bool reveal(int x, int y);
  29.  
  30.     ~Plansza();
  31. };
  32.  
  33.  
  34. #endif //SAPER_PLANSZA_H
Add Comment
Please, Sign In to add comment