123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- #ifndef GAME_H
- #define GAME_H
- #include <iostream>
- #include <cstdlib>
- #include <ctime>
- #include <SDL.h>
- #undef main
- #include "SDL_GFX/SDL_gfxPrimitives.h"
- #include "HitManager.h"
- #include "Ally.h"
- #include "Score.h"
- #include "WaveManager.h"
- #include "Control/Input.h"
- class Game
- {
- public:
- Game();
- virtual ~Game();
- bool init();
- void run();
- protected:
- std::string menu();
- bool rush( std::string planet );
- private:
- void printGameOver();
- private:
- SDL_Surface* m_screen;
- Ally m_player;
- Score m_score;
- HitManager m_hiter;
- WaveManager m_waver;
- Input m_input;
- Uint16 m_lvlSelect;
- Uint16 m_shipSelect;
- Uint16 m_pSelect;
- };
- #endif
|