12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #ifndef WAVEMANAGER_H
- #define WAVEMANAGER_H
- #include "HitManager.h"
- #include "Foe.h"
- #include <vector>
- class WaveManager
- {
- public:
- WaveManager();
- virtual ~WaveManager();
- void giveHitManager( HitManager* theHitManager );
- virtual void draw( SDL_Surface* screen );
- virtual void update();
- virtual void clean();
- void reset();
- virtual bool allDead();
- virtual bool hasWon();
- virtual bool hasLost();
- void setPlanet( std::string planet );
- std::vector< Foe* >* getFoes();
- SDL_Rect nearestFromPoint( SDL_Rect pos_ref );
- SDL_Rect nearestFromAxe( SDL_Rect pos_ref );
- protected:
- virtual void nextWave();
- private:
- Uint16 m_lvl;
- Uint32 m_chrono;
- bool m_allDead;
- bool m_complete;
- bool m_gameLost;
- std::string m_planet;
- HitManager* m_hiter;
- std::vector<Foe*> m_escadron;
- };
- #endif
|