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

FollowupAction Player::cmd_view(Argv argv) {
	if (argv.size() == 0) {
		lprtf("Fout, gebruik: Bekijk <Zelf|VIJHAND|OBJECT>\n");
		return FollowupAction::NONE;
	}

	if (argv[0] == "Zelf") {
		lprtf("Je hebt %d levenspunten.\n", this->health_points);
		lprtf("Je hebt een aanvalskans van %.0f%%.\n", this->attack_chance * 100);
		// TODO: weapon
		// TODO: armor
		// TODO: gold
		// TODO: inventory
	}

	return FollowupAction::NONE;
}