From 2c12d19204aa198bf8537bcdb137b40f0c7317e9 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Sun, 25 Sep 2016 18:38:34 +0200 Subject: Initial --- AmpelJonas/cObject.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 AmpelJonas/cObject.h (limited to 'AmpelJonas/cObject.h') diff --git a/AmpelJonas/cObject.h b/AmpelJonas/cObject.h new file mode 100644 index 0000000..abdba3c --- /dev/null +++ b/AmpelJonas/cObject.h @@ -0,0 +1,32 @@ +#pragma once +#include "stdafx.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