Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/example/example.h')
-rw-r--r--src/game/example/example.h19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/game/example/example.h b/src/game/example/example.h
index ba8aa72..64e9e4d 100644
--- a/src/game/example/example.h
+++ b/src/game/example/example.h
@@ -34,31 +34,26 @@ public:
Example();
/// desctructor, called on module unload
- ~Example();
+ virtual ~Example();
/// called once every server frame
/** @param elapsed time elapsed since the precious server frame, in seconds
*/
- void frame(float elapsed);
+ virtual void frame(float elapsed);
/// called when a player connects
- void player_connect(core::Player *player);
+ virtual void player_connect(core::Player *player);
/// called when a player disconnects
- void player_disconnect(core::Player *player);
-
-protected:
- /// called when the game starts
- void init();
-
- /// called when the game is shut down
- void shutdown();
-
+ virtual void player_disconnect(core::Player *player);
private:
core::Zone *zone;
};
+/// factory function
+core::Module *factory();
+
}
#endif // __INCLUDED_EXAMPLE_H__