projects
/
supertux.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
- Change ScriptInterpreter to a gameobject, so we can now have several script
[supertux.git]
/
src
/
scripting
/
level.cpp
1
#include <config.h>
2
3
#include <string>
4
#include <stdio.h>
5
#include "level.h"
6
#include "game_session.h"
7
8
namespace Scripting
9
{
10
Level::Level()
11
{}
12
13
Level::~Level()
14
{}
15
16
void
17
Level::finish()
18
{
19
GameSession::current()->finish();
20
}
21
22
void
23
Level::spawn(const std::string& sector, const std::string& spawnpoint)
24
{
25
GameSession::current()->respawn(sector, spawnpoint);
26
}
27
}