/* intro/intro.cc This file is part of the Osirion project and is distributed under the terms of the GNU General Public License version 2 */ #include "intro/intro.h" #include "sys/sys.h" namespace intro { Intro::Intro() : core::Module("Introduction") { intro_zone = 0; } Intro::~Intro() { } void Intro::init() { /// intialize a single zone for the introduction intro_zone = new core::Zone("intro"); intro_zone->set_name("Introduction"); core::Zone::add(intro_zone); /// add a planet core::EntityGlobe *planet = new core::EntityGlobe(); planet->set_zone(intro_zone); planet->set_name("Planet"); planet->set_label("planet"); planet->entity_texture.assign("planets/seymour"); planet->entity_location.assign(0, -32.0f, 0.0f); planet->entity_radius = 64.0f; planet->entity_rotationspeed = 1.0f; module_running = true; } void Intro::player_connect(core::Player *player) { player->set_zone(intro_zone); } void Intro::player_disconnect(core::Player *player) { } void Intro::frame(float seconds) { } void Intro::shutdown() { } }