Ajuste leve na velocidade permitindo movimentos mais sutis
[Projeto-PCG.git] / game.h
blob927d3ccbb8bfe44d612ccc8d411f84945b467a30
1 #ifndef GAME_H
2 #define GAME_H
4 #include <string>
5 #include "gravity.h"
6 #include "mapa.h"
7 #include "weaponmanager.h"
8 #include "configmanager.h"
9 #include "enemymanager.h"
10 #include "collision.h"
12 class Player;
13 class Mapa;
14 class ShotManager;
16 class Game {
17 private:
18 void show();
19 void loadMap(std::string mapname);
20 Ponto spawn;
21 public:
22 ConfigManager *config;
23 CollisionManager* collisionManager;
24 WeaponManager* weaponManager;
25 ShotManager* shotManager;
26 EnemyManager* enemyManager;
27 double rate;
28 Ponto camera;
29 Game(ConfigManager *cfg);
30 void mainLoop();
31 void desenhaMira(Ponto aim);
32 Player *player;
33 Mapa *mapa;
34 void addPlatform(Platform* plat);
35 GravityManager *gravityManager;
36 void reloadLua();
37 void removePlatforms();
38 void setSpawn(Ponto spawn);
39 Ponto getSpawn() {return spawn;}
40 void resize(GLsizei x, GLsizei y);
41 WeaponItem* dropWeapon(std::string name);
42 void spawnEnemy(std::string name, Ponto position);
43 void previousMap();
44 void reloadMap(bool respawn);
45 void nextMap();
48 #endif