about summary refs log tree commit diff
path: root/src/game/client/component.hpp
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2010-05-29 07:25:38 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2010-05-29 07:25:38 +0000
commit72c06a258940696093f255fb1061beb58e1cdd0b (patch)
tree36b9a7712eec2d4f07837eab9c38ef1c5af85319 /src/game/client/component.hpp
parente56feb597bc743677633432f77513b02907fd169 (diff)
downloadzcatch-72c06a258940696093f255fb1061beb58e1cdd0b.tar.gz
zcatch-72c06a258940696093f255fb1061beb58e1cdd0b.zip
copied refactor to trunk
Diffstat (limited to 'src/game/client/component.hpp')
-rw-r--r--src/game/client/component.hpp35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/game/client/component.hpp b/src/game/client/component.hpp
deleted file mode 100644
index 6534e56b..00000000
--- a/src/game/client/component.hpp
+++ /dev/null
@@ -1,35 +0,0 @@
-#ifndef GAME_CLIENT_GAMESYSTEM_H
-#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() {}
-	
-	virtual void on_statechange(int new_state, int old_state) {};
-	virtual void on_console_init() {};
-	virtual void on_init() {};
-	virtual void on_save() {};
-	virtual void on_reset() {};
-	virtual void on_render() {};
-	virtual void on_mapload() {};
-	virtual void on_message(int msg, void *rawmsg) {}
-	virtual bool on_mousemove(float x, float y) { return false; }
-	virtual bool on_input(INPUT_EVENT e) { return false; }
-};
-
-#endif