Gambiarra sobre erro em Shooter::getCollision
[Projeto-PCG.git] / gravity.h
blob2bcf781dda5e8254092054554a006c4fd9421bc9
1 #ifndef GRAVITY_H
2 #define GRAVITY_H
4 #include <set>
5 #include "geometry.h"
6 #include "thing.h"
7 #include "platform.h"
9 class GravityManager {
10 private:
11 std::set<Thing*> things;
12 std::set<Platform*> platforms;
13 bool checkGround(Thing* thing, Platform *platform);
14 public:
15 void subscribe(Thing* thing);
16 void addPlatform(Platform* linha);
17 void update();
18 void removePlatforms();
19 void deleteThing(Thing* thing);
22 #endif