diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-25 21:38:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-25 21:38:12 +0300 |
commit | fb062d9f90d44e279ce02985c3f4f4335550cf87 (patch) | |
tree | 4ae1fec555e1f065018b2ac8d8650130c3060c40 /src/actions | |
parent | 015a260c6444e74579401dfe41e39592b2201d36 (diff) | |
download | plus-fb062d9f90d44e279ce02985c3f4f4335550cf87.tar.gz plus-fb062d9f90d44e279ce02985c3f4f4335550cf87.tar.bz2 plus-fb062d9f90d44e279ce02985c3f4f4335550cf87.tar.xz plus-fb062d9f90d44e279ce02985c3f4f4335550cf87.zip |
Move chat command /all into actions.
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/commands.cpp | 10 | ||||
-rw-r--r-- | src/actions/commands.h | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index 103248aa8..797c75edb 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -262,4 +262,14 @@ impHandler0(present) return false; } +impHandler0(printAll) +{ + if (actorManager) + { + actorManager->printAllToChat(); + return true; + } + return false; +} + } // namespace Actions diff --git a/src/actions/commands.h b/src/actions/commands.h index bd9a7148c..02810286c 100644 --- a/src/actions/commands.h +++ b/src/actions/commands.h @@ -37,6 +37,7 @@ namespace Actions decHandler(chatEnemy); decHandler(chatErase); decHandler(present); + decHandler(printAll); } // namespace Actions #undef decHandler |