Suporte a IR, talvez...
[Projeto-PCG.git] / thing.h
blob671b71984bbd9fd57b9316009763866eeb725193
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();
24 virtual Linha getBaseLine();
25 virtual Polygon getCollision();
26 virtual void collide(Thing* b);
30 #endif