From 35613f0860a2d8cb643ca8de006de08503e48e53 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 18 Oct 2008 17:58:45 +0000 Subject: example module --- src/game/intro/intro.cc | 5 +---- src/game/intro/intro.h | 12 ++++++------ 2 files changed, 7 insertions(+), 10 deletions(-) (limited to 'src/game/intro') 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; -- cgit v1.2.3