aboutsummaryrefslogtreecommitdiff
path: root/frontend/cmd/view.cpp
blob: b9d179bdd9392a713c6c29ad42a43075e3958777 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "../print.h"
#include "../Player.h"
#include "../strings.h"

using namespace std;

FollowupAction Player::cmd_view(string & target) {
	if (target.size() == 0) {
		lprtf("Fout, gebruik: Bekijk <Zelf|VIJHAND|OBJECT>\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;
}