Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef _CLASS_H
- #define _CLASS_H
- #include <iostream>
- #include <windows.h>
- #include<cstdio>
- #include<cstdlib>
- #include <conio.h>
- #include <vector>
- #include <unistd.h>
- using namespace std;
- const int MAPA_X = 40;
- const int MAPA_Y = 70;
- class Interaction
- {
- public:
- virtual void make()=0;
- };
- // klasa kontroli pozycjonowania elementow
- class Pozycja
- {
- public: int x,y;
- };
- //glowna klasa gry odpowiada za dzialania, ruch i tworzenie elementow
- class Game : public virtual Interaction, public Pozycja
- {
- protected:
- Pozycja player;
- vector<Pozycja> enemy;
- int wynik;
- int liczba_enemy;
- public:
- Game();
- bool przegrana;
- bool Lose();
- void make(){};
- void gameStatus();
- void createEnemy(int numer);
- vector<Pozcyja>&return_referenceEnemy();
- void podnies_wynik();
- void player_move();
- void enemy_move();
- Pozycja& return_referencePlayer();
- };
- //tworzy i wyswietla menu wejsciowe w konsoli
- class Menu : public Game
- {
- public:
- char menu;
- void start();
- };
- //generuje plansze i ustawia pozycje postaci
- class World:public Game //public Game
- { private:
- int mapka[MAPA_X][MAPA_Y];
- public:
- void make(){};
- World();
- void rysuj();
- void resetMap();
- void setEnemy(vector<Pozycja>& enemy);
- void setPlayer(Pozycja& player);
- };
- //koniec deklaracji funkcjii class
- #endif // CLASS.H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement