Removida atribuição "órfã"
[Projeto-PCG.git] / thing.cpp
blobcbae476075f44434f4d3cfec889b4c4cb39e6c65
1 #include "thing.h"
3 Thing::Thing() {
4 onGround = false;
7 void Thing::addSpeed(double xspeed, double yspeed) {
8 velocidade.x += xspeed;
9 velocidade.y += yspeed;
12 void Thing::setSpeed(double xspeed, double yspeed) {
13 velocidade.x = xspeed;
14 velocidade.y = yspeed;
17 void Thing::setPosition(double x, double y) {
18 posicao.x = x;
19 posicao.y = y;
22 void Thing::move() {
23 posicao.x += velocidade.x;
24 posicao.y += velocidade.y;
27 Linha Thing::getBaseLine() {
28 Linha ret(0,0,0,0);
29 return ret;