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

using namespace std;

FollowupAction Player::cmd_help(string &) {
	lprtf("De beschikbare commando's zijn: ");
	bool first = true;
	for (auto & [ key, _ ] : this->cmds) {
		if (!first) lprtf(", ");
		lprtf("%s", key.c_str());
		first = false;
	}
	lprtf(".\n");
	return FollowupAction::NONE;
}