Ajuste leve na velocidade permitindo movimentos mais sutis
[Projeto-PCG.git] / gravity.h
blobf3f0d96d96371d4db295c238b7a7ba38453090c5
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, double &t);
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