#include "../Player.h" #include "../strings.h" #include "backend/print.h" using namespace std; FollowupAction Player::cmd_view(string & target) { if (target.size() == 0) { lprtf("Fout, gebruik: Bekijk \n"); return FollowupAction::NONE; } if (str_lower(target) == "zelf") { lprtf("Je hebt %d levenspunten.\n", this->health_points); lprtf("Je hebt een aanvalskans van %.0f%%.\n", this->get_attack() * 100); // TODO: weapon // TODO: armor lprtf("Je hebt %u goundstuk%s.\n", this->gold, this->gold == 1 ? "" : "ken"); // TODO: inventory } return FollowupAction::NONE; }