summaryrefslogtreecommitdiff
path: root/src/movinggameobject.cpp
blob: 9e8e88618ca7916988bac53f76b3a8c40e601c2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "movinggameobject.h"
#include "gameobject.h"

#include <string>

using namespace std;

MovingGameObject::MovingGameObject(float pos_x, float pos_y, float size_x, float size_y, float orientation, string texture, float speed) : GameObject(pos_x, pos_y, size_x, size_y, orientation, texture){
	this -> speed = speed;
}

MovingGameObject::~MovingGameObject(){
	
}

float MovingGameObject::getSpeed(){
	return this -> speed;
}