summaryrefslogtreecommitdiff
path: root/cObjectHandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'cObjectHandler.h')
-rw-r--r--cObjectHandler.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/cObjectHandler.h b/cObjectHandler.h
index 1749c9b..ee83877 100644
--- a/cObjectHandler.h
+++ b/cObjectHandler.h
@@ -31,7 +31,25 @@ public:
int write();
//writes all objects in objects[] to render buffer
+ int clickEvent(sPos _pos, unsigned int _button);
+ //Calls onClick of cObject at _pos, focuses Object
+ //returns 0 if successfull, 1 if Object is empty
+
+ int charEvent(unsigned char _c);
+ //Calls onChar of active cObject, default 0
+ //returns 0 if successfull, 1 if focused Object is empty
+
+ void focusNext();
+ //Focuses next Object
+
+ void focus(unsigned int _id);
+ //Focuses specific Object
+
private:
+ void buildHitmap();
+
vector<cObject*> objects;
+ vector<vector<unsigned int>> iHitMap;
cRender *render;
+ unsigned long int iActiveObject;
};