summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/state.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/state.cc')
-rw-r--r--crawl-ref/source/state.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/crawl-ref/source/state.cc b/crawl-ref/source/state.cc
index 91845abd51..f6eafa288b 100644
--- a/crawl-ref/source/state.cc
+++ b/crawl-ref/source/state.cc
@@ -112,6 +112,12 @@ void game_state::cancel_cmd_again(std::string reason)
mpr(reason.c_str());
}
+void game_state::cancel_cmd_all(std::string reason)
+{
+ cancel_cmd_repeat(reason);
+ cancel_cmd_again(reason);
+}
+
void game_state::cant_cmd_repeat(std::string reason)
{
if (reason.empty())
@@ -128,6 +134,12 @@ void game_state::cant_cmd_again(std::string reason)
cancel_cmd_again(reason);
}
+void game_state::cant_cmd_any(std::string reason)
+{
+ cant_cmd_repeat(reason);
+ cant_cmd_again(reason);
+}
+
// The method is called to prevent the "no repeating zero turns
// commands" message that input() generates (in the absence of
// cancelling the repeition) for a repeated command that took no