From afec8e7c3aec1a186512b997ed3b717efef8fc43 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 11 Feb 2008 00:19:11 +0000 Subject: renamed Entity.base_* to Entity.core_* fixed camera::mode::Overview --- src/core/gameinterface.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/core/gameinterface.h') diff --git a/src/core/gameinterface.h b/src/core/gameinterface.h index 2e61ffb..b7df479 100644 --- a/src/core/gameinterface.h +++ b/src/core/gameinterface.h @@ -7,6 +7,8 @@ #ifndef __INCLUDED_CORE_GAMEINTERFACE_H__ #define __INCLUDED_CORE_GAMEINTERFACE_H__ +#include "core/player.h" + namespace core { @@ -26,12 +28,15 @@ public: /// shutdown the game virtual void shutdown() = 0; - + /// run one frame of the game /** @param sec time since the previous frame, in seconds */ virtual void frame(float seconds) = 0; + /// a player joins the game + virtual void event_join(Player *player) = 0; + /// a pointer to the current game instance static GameInterface * instance(); -- cgit v1.2.3