diff options
Diffstat (limited to 'src/core/gameinterface.h')
-rw-r--r-- | src/core/gameinterface.h | 7 |
1 files changed, 6 insertions, 1 deletions
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(); |