coeng
diff src/comp.h @ 8:8cce82794f90
seems to work nicely
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 15 Feb 2015 05:14:20 +0200 |
parents | 2f872a179914 |
children |
line diff
1.1 --- a/src/comp.h Sat Feb 14 10:08:00 2015 +0200 1.2 +++ b/src/comp.h Sun Feb 15 05:14:20 2015 +0200 1.3 @@ -9,6 +9,10 @@ 1.4 #define COCAST(type, x) dynamic_cast<type*>(x) 1.5 #endif 1.6 1.7 +// for the second arg of the various gobj_co_whatever() functions 1.8 +#define COGET_NOFAIL true 1.9 +#define COGET_FAIL false 1.10 + 1.11 class GObject; 1.12 1.13 class Component { 1.14 @@ -34,6 +38,7 @@ 1.15 virtual ~Component(); 1.16 1.17 const char *get_name() const; 1.18 + GObject *get_object() const; 1.19 1.20 virtual void update(float dt); 1.21 virtual void draw() const;