diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2009-10-27 14:38:53 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2009-10-27 14:38:53 +0000 |
| commit | 878ede3080ab2cfb627aca505c397d9765052996 (patch) | |
| tree | 98bff371070e1dca0295f0ca58d64ac4ee8042ce /src/game/client/component.hpp | |
| parent | 9b99ec0e60b60134e46f2f71d707230948f7db03 (diff) | |
| download | zcatch-878ede3080ab2cfb627aca505c397d9765052996.tar.gz zcatch-878ede3080ab2cfb627aca505c397d9765052996.zip | |
major update with stuff
Diffstat (limited to 'src/game/client/component.hpp')
| -rw-r--r-- | src/game/client/component.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game/client/component.hpp b/src/game/client/component.hpp index 3d5edb86..6534e56b 100644 --- a/src/game/client/component.hpp +++ b/src/game/client/component.hpp @@ -2,13 +2,21 @@ #define GAME_CLIENT_GAMESYSTEM_H #include <engine/e_client_interface.h> +#include "gameclient.hpp" class GAMECLIENT; class COMPONENT { protected: + friend class GAMECLIENT; + GAMECLIENT *client; + + // perhaps propagte pointers for these as well + class IGraphics *Graphics() const { return client->Graphics(); } + class CUI *UI() const { return client->UI(); } + class CRenderTools *RenderTools() const { return client->RenderTools(); } public: virtual ~COMPONENT() {} |