Adicionada constante TIME_RATE, deve ser passada para config depois
[Projeto-PCG.git] / thing.h
blobf101601460910c5ef14c462c0766551d6a3b5e83
1 #ifndef THING_H
2 #define THING_H
4 #include "geometry.h"
6 class Thing {
7 protected:
8 Ponto posicao;
9 Vetor velocidade;
10 Vetor maxspeed;
11 public:
12 double gravityRate;
13 bool onGround;
14 bool bypass;
15 Thing();
16 void addSpeed(double xspeed, double yspeed);
17 void setSpeed(double xspeed, double yspeed);
18 double getSpeedX() {return velocidade.x;}
19 double getSpeedY() {return velocidade.y;}
20 void setPosition(double x, double y);
21 double getX() {return posicao.x;}
22 double getY() {return posicao.y;}
23 void move(int t);
24 virtual Linha getBaseLine();
25 virtual Polygon getCollision();
26 virtual void collide(Thing* b);
30 #endif