aboutsummaryrefslogtreecommitdiff
path: root/gameloop/src/gameObject.cpp
blob: f63731467ddab0489c9117de44b96ee378d3e674 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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) {

	}