diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2018-04-21 18:20:49 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2018-04-21 18:20:49 +0200 |
commit | 4cfe1361fff6223d11a25cefd74af7a51b7d57bd (patch) | |
tree | d1ca7dca22567ec15be3f97d34b44766ad5dc7f4 /src/game/units.cpp | |
parent | 076f69f12ba4000a9c307e803e05827d037d1ff6 (diff) |
Hide game and interface behind a pimpl.
Diffstat (limited to 'src/game/units.cpp')
-rw-r--r-- | src/game/units.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/units.cpp b/src/game/units.cpp index 2b3b081..828ca6b 100644 --- a/src/game/units.cpp +++ b/src/game/units.cpp @@ -102,7 +102,7 @@ void unit_t::say(std::string str, bool on_interface) say_time = game->now; if (on_interface) - game->interface->print(name + ": " + str); + game->interface.print(name + ": " + str); } bool unit_t::keep_moving(double speed) @@ -220,11 +220,11 @@ void unit_t::die(unit_t *killer) case UNIT_SOLDIER: case UNIT_SCIENTIST: case UNIT_SPIDER: - game->interface->print(name + " " + text::get(text::UNIT_DEATH) + "."); + game->interface.print(name + " " + text::get(text::UNIT_DEATH) + "."); break; default: - game->interface->print(name + " " + text::get(text::UNIT_DESTRUCTION) + "."); + game->interface.print(name + " " + text::get(text::UNIT_DESTRUCTION) + "."); break; } |