-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplansza.h
35 lines (28 loc) · 814 Bytes
/
plansza.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef PLANSZA_H
#define PLANSZA_H
#include <iostream>
#include"menu.h"
#include"mrowka.h"
#include"lista.h"
using namespace std;
// Deklaracje poprzedzające (Forward declarations):
class Menu;
class Mrowka;
class Lista;
class Plansza{
private:
friend class Lista;
char pole;
bool BIALY;
//Deklaracja przyjazni
friend class Mrowka;
public:
Plansza(); //Dekalrauje pole jako biale i ustawia flage BIALY=1
friend void TworzPlansze(Menu D, Plansza **&P);
friend void WyswietlPlansze(Plansza **P, Menu D);
friend void Wykonaj(Menu D, Plansza** &P, Mrowka* &T, Lista* &g);
friend void TworzListe(Menu D, Lista *&g);
friend void UzupelnijListe(Menu D, Lista* &wsk, int krok, Plansza** &T);
friend void WyswietlajElemnty(Menu D, Lista * g);
};
#endif // PLANSZA_H