#include "../GameController.h" #include "backend/print.h" #include "backend/Location.h" using namespace std; FollowupAction GameController::cmd_search(string &) { Location & location = this->player.get_location(); bool found = false; for (Object * object : location.get_hidden_objects()) { if (!found) lprtf("Je vindt:\n"); lprtf("- %s\n", object->get_displayname().c_str()); location.unhide_object(object); found = true; } if (!found) lprtf("Je hebt niks gevonden.\n"); return FollowupAction::UPDATE; }