feataure add hp command
This commit is contained in:
parent
b21175ac14
commit
019cac44c6
6
main.cpp
6
main.cpp
@ -297,6 +297,12 @@ void gameLoop() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (commandBuffer.compare(0, endOfVerb, "hp") == 0) {
|
||||||
|
wrapOut("Current HP: " + std::to_string(currentState->getHP()));
|
||||||
|
wrapEndPara();
|
||||||
|
commandOk = true;
|
||||||
|
}
|
||||||
|
|
||||||
// check get <keyword>, drop <keyword>, eat <keyword>
|
// check get <keyword>, drop <keyword>, eat <keyword>
|
||||||
if (!commandOk) {
|
if (!commandOk) {
|
||||||
std::vector<std::string> words = split(commandBuffer);
|
std::vector<std::string> words = split(commandBuffer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user