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-10-18 17:58:45 +0000
committerStijn Buys <ingar@osirion.org>2008-10-18 17:58:45 +0000
commit35613f0860a2d8cb643ca8de006de08503e48e53 (patch)
tree8a5436de643e818e68a82df2e5cb2df2145f5062 /src/game/intro
parentdb287e4a5133125bb6f25ba21ea97c47b19ac67f (diff)
example module
Diffstat (limited to 'src/game/intro')
-rw-r--r--src/game/intro/intro.cc5
-rw-r--r--src/game/intro/intro.h12
2 files changed, 7 insertions, 10 deletions
diff --git a/src/game/intro/intro.cc b/src/game/intro/intro.cc
index abb3ba8..95d003a 100644
--- a/src/game/intro/intro.cc
+++ b/src/game/intro/intro.cc
@@ -14,9 +14,8 @@
namespace intro {
-Intro::Intro() : core::Module("intro", "Introduction")
+Intro::Intro() : core::Module("intro", "Introduction", false)
{
- module_interactive = false;
intro_zone = 0;
intro_convoy = 0;
}
@@ -39,8 +38,6 @@ void Intro::init()
abort();
return;
}
-
- module_running = true;
}
bool Intro::load_world()
diff --git a/src/game/intro/intro.h b/src/game/intro/intro.h
index 748432c..da6fb80 100644
--- a/src/game/intro/intro.h
+++ b/src/game/intro/intro.h
@@ -23,12 +23,6 @@ public:
/// delete an introduction game module
~Intro();
- /// run the introduction
- void init();
-
- /// shutdown the introduction
- void shutdown();
-
/// run one frame
void frame(float seconds);
@@ -38,6 +32,12 @@ public:
/// is called when a player disconnects
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;