From 878ede3080ab2cfb627aca505c397d9765052996 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Tue, 27 Oct 2009 14:38:53 +0000 Subject: major update with stuff --- src/game/client/component.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/game/client/component.hpp') 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 +#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() {} -- cgit 1.4.1