38 lines
879 B
C++
38 lines
879 B
C++
#ifndef AGAME_H_
|
|
# define AGAME_H_
|
|
|
|
#include <list>
|
|
#include <string>
|
|
#include "Core/Core.hh"
|
|
#include "APlayer.hh"
|
|
#include "Background.hh"
|
|
|
|
namespace DamnCute {
|
|
class AGame {
|
|
|
|
public:
|
|
explicit AGame(const std::string&, const std::string&);
|
|
explicit AGame();
|
|
virtual ~AGame();
|
|
virtual void pause() = 0;
|
|
virtual void run() = 0;
|
|
template <typename T>
|
|
unsigned int addPlayer();
|
|
APlayer* getPlayer(unsigned int);
|
|
unsigned int addPlayer(APlayer*);
|
|
void delPlayer(unsigned int);
|
|
void stopRender();
|
|
|
|
private:
|
|
std::list<APlayer*> _players;
|
|
|
|
protected:
|
|
Core* _engine;
|
|
std::string _baseResourcesPath;
|
|
Background* _bg;
|
|
bool _isEnd;
|
|
};
|
|
}
|
|
|
|
#endif /* !AGAME_H_ */
|