diff options
Diffstat (limited to 'src/movinggameobject.cpp')
-rw-r--r-- | src/movinggameobject.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/movinggameobject.cpp b/src/movinggameobject.cpp new file mode 100644 index 0000000..9e8e886 --- /dev/null +++ b/src/movinggameobject.cpp @@ -0,0 +1,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; +}
\ No newline at end of file |