#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()
{
- NOIMPL;
+ GameSession::current()->finish();
+ }
+
+ void
+ Level::spawn(const std::string& sector, const std::string& spawnpoint)
+ {
+ 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());
}
}