From 7015245de4af673af3e6fa62d5d0f9c2e0c2a8a1 Mon Sep 17 00:00:00 2001 From: jonas Date: Thu, 27 Dec 2018 00:26:34 +0100 Subject: cleaned working tree --- cObject.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 cObject.h (limited to 'cObject.h') diff --git a/cObject.h b/cObject.h new file mode 100644 index 0000000..c3114c3 --- /dev/null +++ b/cObject.h @@ -0,0 +1,36 @@ +#pragma once +#include + +#include "cRender.h" + +struct sObject + +{ + sPos pos; + WORD **wColor; + char **cScreen; + int sizeX; + int sizeY; +}; + +class cObject : public cRender +{ +public: + cObject(int _sx, int _sy); + //_sx : SizeX + //_sy : SizeY + + ~cObject(); + + sPos getPosition(); + + void setPosition(sPos _pos); + + void setPosition(int _x, int _y); + + sObject getObject(); + +private: + //wColor, cScreen, sizeX and sizeY are inherited from cRender + sPos pos; +}; -- cgit v1.2.3