#include <string>
#include <stdio.h>
-#include "level.h"
-
-#define NOIMPL printf("%s not implemented.\n", __PRETTY_FUNCTION__);
+#include "level.hpp"
+#include "game_session.hpp"
+#include "flip_level_transformer.hpp"
namespace Scripting
{
{}
void
- Level::finish()
+ Level::finish(bool win)
+ {
+ GameSession::current()->finish(win);
+ }
+
+ void
+ Level::spawn(const std::string& sector, const std::string& spawnpoint)
{
- NOIMPL;
+ GameSession::current()->respawn(sector, spawnpoint);
}
void
- Level::spawn(const std::string& , const std::string& )
+ Level::flip_vertically()
{
- NOIMPL;
+ FlipLevelTransformer flip_transformer;
+ flip_transformer.transform(GameSession::current()->get_current_level());
}
}