diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-09-21 15:31:58 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-09-21 15:31:58 +0200 |
commit | ca393b6b47618e48c107ad5c021d86700343648e (patch) | |
tree | 298bff793ee331566b6be1840c8d7404409b5198 /mwe/gameloop/src/gameObject.cpp | |
parent | 8bf919f750807060f3ac2c640b8a02300af1733c (diff) |
move gameloop poc to mwe
Diffstat (limited to 'mwe/gameloop/src/gameObject.cpp')
-rw-r--r-- | mwe/gameloop/src/gameObject.cpp | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/mwe/gameloop/src/gameObject.cpp b/mwe/gameloop/src/gameObject.cpp new file mode 100644 index 0000000..f637314 --- /dev/null +++ b/mwe/gameloop/src/gameObject.cpp @@ -0,0 +1,58 @@ +#include "gameObject.h" +std::string GameObject::getName() const{ + return name; +} +float GameObject::getX() const{ + return x; +} + +float GameObject::getY() const{ + return y; +} + +float GameObject::getWidth() const{ + return width; +} + +float GameObject::getHeight() const{ + return height; +} + +float GameObject::getVelX() const{ + return velX; +} + +float GameObject::getVelY() const{ + return velY; +} +void GameObject::setName(std::string value){ + name = value; +} +void GameObject::setX(float value){ + x = value; +} + +void GameObject::setY(float value){ + y = value; +} + +void GameObject::setWidth(float value){ + width = value; +} + +void GameObject::setHeight(float value){ + height = value; +} + +void GameObject::setVelX(float value){ + velX = value; +} + +void GameObject::setVelY(float value){ + velY = value; +} + +GameObject::GameObject(std::string name, float x, float y, float width, float height, float velX, float velY) + : name(name),x(x), y(y), width(width), height(height), velX(velX), velY(velY) { + + } |