diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/UIClass.h | 9 | ||||
-rw-r--r-- | include/World.h | 2 |
2 files changed, 4 insertions, 7 deletions
diff --git a/include/UIClass.h b/include/UIClass.h index e6f4825..745dec3 100644 --- a/include/UIClass.h +++ b/include/UIClass.h @@ -5,17 +5,14 @@ #include <cstdarg>
#include <cstdio>
-class UIClass {
-private:
- unsigned int fontSize;
-public:
+namespace ui {
+ extern int mousex,mousey;
void init(const char *ttf);
void setFontSize(unsigned int fs);
void putText(const float x,const float y,const char *s,...);
void putString(const float x,const float y,const char *s);
void msgBox(const char *str,...);
void handleEvents();
- int mousex, mousey;
-};
+}
#endif // UICLASS_H
diff --git a/include/World.h b/include/World.h index fca108d..f6ddbfe 100644 --- a/include/World.h +++ b/include/World.h @@ -18,7 +18,7 @@ private: } __attribute__ ((packed)) *line;
unsigned int lineCount; // Size of line array, calculated in the constructor
unsigned int entCount; // Count of currently bound entities
- void *entity[MAX_ENTITIES];
+ void **entity;
public:
World *behind,*infront; // As in layers
World *toLeft,*toRight; // 'new' worlds (off screen)
|