Advertisement
MeehoweCK

Untitled

Apr 10th, 2024
760
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.50 KB | None | 0 0
  1. #pragma once
  2. #include "Karta.h"
  3. #include "Talia.h"
  4. //#include "Gra.h"      // tutaj ten nagłówek jest niepotrzebny
  5.  
  6. //Wskaźnik do planszy, stosu kart, graczy
  7. // Związane jest wyłącznie z jedną rundą
  8.  
  9. class Gra;              // musisz uprzedzić kompilator, że istnieje klasa Gra, inaczej jest błąd w 15. wierszu
  10.  
  11.  
  12. class Rozdanie
  13. {
  14.     Talia talia;
  15.     Gra* mGra;
  16. public:
  17.     Rozdanie(Gra* gra);
  18.     void LosujRole();
  19.     short int  ZwrocSabotazystow();
  20.     void RozdajKarty();
  21.     void PrzydzielKartyCelu();
  22. };
  23.  
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement