aboutsummaryrefslogtreecommitdiff
path: root/src/cmd.h
diff options
context:
space:
mode:
authorYour Name <you@example.com>2022-01-03 16:25:45 -0500
committerYour Name <you@example.com>2022-01-03 16:25:45 -0500
commit3f78a7e1647ba94129236bd2bf4fc855c109628a (patch)
tree0a1538d44715738c8cbbae00bf1995777227b963 /src/cmd.h
parentd222c5a39943ed9f83f11d63a42bdff4978179af (diff)
downloaddmtool-3f78a7e1647ba94129236bd2bf4fc855c109628a.tar.gz
dmtool-3f78a7e1647ba94129236bd2bf4fc855c109628a.tar.bz2
dmtool-3f78a7e1647ba94129236bd2bf4fc855c109628a.zip
Added command to force a saving throw
Diffstat (limited to 'src/cmd.h')
-rw-r--r--src/cmd.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/cmd.h b/src/cmd.h
index 41973ad..978f6db 100644
--- a/src/cmd.h
+++ b/src/cmd.h
@@ -1,7 +1,9 @@
#pragma once
#include <vector>
+#include <map>
#include <string>
#include <filesystem>
+#include "rules.h"
namespace cmd {
// Corresponds to commands
@@ -18,8 +20,9 @@ namespace cmd {
// Manipulators
std::string heal(std::vector<std::string> args);
- std::string damage(std::vector<std::string> args, std::vector<std::string> flags);
- std::string attack(std::vector<std::string> args, std::vector<std::string> flags);
+ std::string damage(std::vector<std::string> args, std::map<std::string, std::string> flags);
+ std::string attack(std::vector<std::string> args, std::map<std::string, std::string> flags);
+ std::string save(std::vector<std::string> args, std::map<std::string, std::string> flags);
std::string reset(std::vector<std::string> args);
std::string set(std::vector<std::string> args);
std::string add(std::vector<std::string> args);
@@ -40,4 +43,5 @@ namespace cmd {
// Helper functions
std::string formatRoll(std::string name, std::string type, int rolled, int bonus);
+ std::vector<rules::Qualifier> parseQualifiers(std::map<std::string, std::string> flags);
}