Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- /* Klasa opisująca pojedyncze pole gry.
- * sluzy głownie jako magazyn danych o polu gry.
- */
- #include<string>
- class World
- {
- int beInside; // ilosc odwiedzin w pokoju
- bool exitCell[4]{ true }; //wyjscia z pokoju: | 0-Połnoc | 1-wschod | 2-poludnie | 3-zachod || (w-d-s-a) * true = otwarte *
- int eventType; //rodzaj wydarzenia lub jego brak.
- int hpCell; //wartosc o jaką zmienia sie zdrowie gracza na tym polu
- int timeCell; //wartosc o jaka zmienia sie czas pozostaly do konca rozgrywki
- std::string infoCell; //opis tekstowy obszaru
- public:
- World(); //konstruktor
- ~World(); //destruktor
- //gettery - czyli metody pobierajace prywatne dane z obiektu
- std::string get_infoCell();
- int get_hpCell();
- int get_timeCell();
- int get_beInside();
- int get_eventType();
- bool get_exitCell(int);
- //settery - czyli metody zmieniajace prywatne dane w obiekcie
- void set_beInside(int);
- void set_exitCell(int, bool);
- void set_eventType(int);
- void set_infoCell(std::string, int);
- };
Add Comment
Please, Sign In to add comment