slumber-quest/main.cpp

21 lines
504 B
C++
Raw Normal View History

2021-05-08 03:36:26 +02:00
#include <iostream>
#include "controller.h"
#include "player.h"
#include "sandboxlevelbuilder.h"
int main()
{
std::unique_ptr<LevelBuilder> level_builder = std::make_unique<SandboxLevelBuilder>();
level_builder->init();
std::shared_ptr<Player> player = std::make_unique<Player>();
const auto& starting_controller = level_builder->getStartingController();
std::cout << starting_controller->interact(player) << "\n\n";
while (true)
{
player->commitAction();
}
}