diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2016-09-25 18:38:34 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2016-09-25 18:38:34 +0200 |
commit | 2c12d19204aa198bf8537bcdb137b40f0c7317e9 (patch) | |
tree | 2b0ea3e0feb0df50449fdd99e0b1dfa3a2f82c16 /AmpelJonas/cObject.h | |
download | termgl-2c12d19204aa198bf8537bcdb137b40f0c7317e9.tar.gz |
Initial
Diffstat (limited to 'AmpelJonas/cObject.h')
-rw-r--r-- | AmpelJonas/cObject.h | 32 |
1 files changed, 32 insertions, 0 deletions
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; + +}; + |