aboutsummaryrefslogtreecommitdiff
path: root/AmpelJonas/cObjectHandler.h
diff options
context:
space:
mode:
authorGravatar jonas <himself@jonasgunz.de> 2018-12-27 00:26:34 +0100
committerGravatar jonas <himself@jonasgunz.de> 2018-12-27 00:26:34 +0100
commit7015245de4af673af3e6fa62d5d0f9c2e0c2a8a1 (patch)
tree8bec5d1716eebb0fedc75dcc036385443b1ecea5 /AmpelJonas/cObjectHandler.h
parent616951a353caf398908e6e6ce7dddf34a65513e5 (diff)
downloadtermgl-7015245de4af673af3e6fa62d5d0f9c2e0c2a8a1.tar.gz
cleaned working tree
Diffstat (limited to 'AmpelJonas/cObjectHandler.h')
-rw-r--r--AmpelJonas/cObjectHandler.h37
1 files changed, 0 insertions, 37 deletions
diff --git a/AmpelJonas/cObjectHandler.h b/AmpelJonas/cObjectHandler.h
deleted file mode 100644
index 1749c9b..0000000
--- a/AmpelJonas/cObjectHandler.h
+++ /dev/null
@@ -1,37 +0,0 @@
-#pragma once
-
-#include <vector>
-
-#include "cObject.h"
-
-//movemodes
-#define _MOVE_RELATIVE 0
-#define _MOVE_ABSOULUTE 1
-
-using namespace std;
-
-class cObject; //Circular dependency break (Bad practice. I Know.)
-
-class cObjectHandler
-{
-public:
- cObjectHandler(cRender *_render);
-
- int createObject(cObject *_object);
- //Adds _object to managed objects vector
- //returns Identifier for newly created vector
-
- int moveObject(int _object, sPos _pos, int _mode);
- //Alters position of _object by _pos either relative to old position or Absolute
- //Depending on selected _mode (_MOVE_RELATIVE / _MOVE_ABSOLUTE).
-
- int destroyObject(int _object);
- //removes _object from vector after deleting it
-
- int write();
- //writes all objects in objects[] to render buffer
-
-private:
- vector<cObject*> objects;
- cRender *render;
-};