summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2019-02-10 13:09:22 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2019-02-10 13:09:22 +0100
commitebf2e4812f39467eaf6ace9bfc9848f9e2d7ea3f (patch)
treeb2421fa92be6a3d67d93878f19b15ae9ab76e7f5
parent2404a1c8049f192464999e925375ca95819bd8e9 (diff)
downloadtermgl-ebf2e4812f39467eaf6ace9bfc9848f9e2d7ea3f.tar.gz
minor tweaks
-rw-r--r--.doxygen2
-rw-r--r--cObject.cpp1
-rw-r--r--cObject.h2
-rw-r--r--cObjectHandler.cpp6
4 files changed, 4 insertions, 7 deletions
diff --git a/.doxygen b/.doxygen
index bd3dc05..ced712b 100644
--- a/.doxygen
+++ b/.doxygen
@@ -159,7 +159,7 @@ FILE_PATTERNS = *.c \
*.ucf \
*.qsf
RECURSIVE = NO
-EXCLUDE =
+EXCLUDE = test.cpp version.h
EXCLUDE_SYMLINKS = NO
EXCLUDE_PATTERNS =
EXCLUDE_SYMBOLS =
diff --git a/cObject.cpp b/cObject.cpp
index cfd433b..7dc194c 100644
--- a/cObject.cpp
+++ b/cObject.cpp
@@ -34,6 +34,7 @@ sObject cObject::getObject()
}
//protected
+cObject::cObject() : pos({0,0}) , bSizeSet(false){}
void cObject::setSize(int _sx, int _sy)
{
diff --git a/cObject.h b/cObject.h
index a2b269a..d0947da 100644
--- a/cObject.h
+++ b/cObject.h
@@ -61,7 +61,7 @@ public:
virtual void onChar(unsigned char _c){}
protected: //For child classes
- cObject() : pos({0,0}) , bSizeSet(false){}
+ cObject();
/** For inheriting classes: sets size of framebuffer
*/
void setSize(int _sx, int _sy);
diff --git a/cObjectHandler.cpp b/cObjectHandler.cpp
index 8a62a52..ee47226 100644
--- a/cObjectHandler.cpp
+++ b/cObjectHandler.cpp
@@ -1,13 +1,9 @@
#include "cObjectHandler.h"
-cObjectHandler::cObjectHandler(cRender *_render)
+cObjectHandler::cObjectHandler(cRender *_render) : cameraPosition ({0,0}), iActiveObject(0)
{
render = _render;
- cameraPosition = {0,0};
-
- iActiveObject = 0;
-
objects.push_back(NULL); //Create first Object as Catcher for Events
buildHitmap();