aboutsummaryrefslogtreecommitdiff
path: root/frontend/cmd/help.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/cmd/help.cpp')
-rw-r--r--frontend/cmd/help.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/frontend/cmd/help.cpp b/frontend/cmd/help.cpp
new file mode 100644
index 0000000..1ae1fde
--- /dev/null
+++ b/frontend/cmd/help.cpp
@@ -0,0 +1,15 @@
+#include "../print.h"
+#include "../Player.h"
+
+FollowupAction Player::cmd_help(Argv argv) {
+ 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;
+}
+