diff options
author | Justin Worthe <justin.worthe@gmail.com> | 2015-06-06 15:39:02 +0200 |
---|---|---|
committer | Justin Worthe <justin.worthe@gmail.com> | 2015-06-06 15:39:02 +0200 |
commit | 97d6287a0710ec59d746f6340a796bbe6c7c8aa2 (patch) | |
tree | d4dcca538ae99829b808e10261d4d430b4e29278 /src/game_state.cpp | |
parent | 140b51f2bcd9c0aaa5b536d85702064a93530188 (diff) |
Abstracted game objects into an entity base class
Diffstat (limited to 'src/game_state.cpp')
-rw-r--r-- | src/game_state.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game_state.cpp b/src/game_state.cpp index 340bcd3..2a9975e 100644 --- a/src/game_state.cpp +++ b/src/game_state.cpp @@ -50,3 +50,11 @@ GameState::GameState(std::string mapFilename) } } } + +void GameState::logState() +{ + for (auto alien : aliens) + { + std::cout << "Alien (" << alien.x() << ", " << alien.y() << ")" << std::endl; + } +} |