Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
blob: c0ae6daf8f278455ab716d26ec80a05dfafab122 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
   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()
{
}

}