Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-11-23 12:34:07 +0000
committerStijn Buys <ingar@osirion.org>2008-11-23 12:34:07 +0000
commit583ec3285c41e9d253c4aaabd2af4dadac75f3a7 (patch)
tree5ec345e44af9d3699a95f493d8358ee766e23330 /src/game/intro/intro.h
parent44158ccfbe943b832c0e0bf9ce547212aa6c2b8b (diff)
clean module consturction/destruction
Diffstat (limited to 'src/game/intro/intro.h')
-rw-r--r--src/game/intro/intro.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/game/intro/intro.h b/src/game/intro/intro.h
index da6fb80..d94b1f5 100644
--- a/src/game/intro/intro.h
+++ b/src/game/intro/intro.h
@@ -21,23 +21,17 @@ public:
/// create an introduction game module
Intro();
/// delete an introduction game module
- ~Intro();
+ virtual ~Intro();
/// run one frame
- void frame(float seconds);
+ virtual void frame(float seconds);
/// is called when a player connects
- void player_connect(core::Player *player);
+ virtual void player_connect(core::Player *player);
/// is called when a player disconnects
- void player_disconnect(core::Player *player);
+ virtual void player_disconnect(core::Player *player);
-protected:
- /// run the introduction
- void init();
-
- /// shutdown the introduction
- void shutdown();
private:
core::Zone *intro_zone;
Convoy *intro_convoy;
@@ -45,6 +39,9 @@ private:
bool load_world();
};
+/// factory function
+core::Module *factory();
+
}
#endif // __INCLUDED_INTRO_H__