summaryrefslogtreecommitdiff
path: root/src/gameobject.h
blob: fe317df515f86fc7c9891d27464ce296686c7807 (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
#pragma once

#include <string>

using namespace std;

class GameObject {

	float pos_x, pos_y, size_x, size_y, orientation;
	bool terminate;
	string texture;

public:

	GameObject(float pos_x, float pos_y, float size_x, float size_y, float orientation, string texture);
	virtual ~GameObject();

	virtual void update();
	virtual void draw();

	float getPosX();
	float getPosY();
	float getSizeX();
	float getSizeY();
	float getOrientation();
	float getRadius();
	bool getTerminate();
	string getTexture();

	void setPosX(float pos_x);
	void setPosY(float pos_y);
	void setTerminate(bool terminate);

	virtual bool collidable();

};