From 72eaaeb60916e736de6c1aaa3d1047663bce19d9 Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Mon, 8 Jun 2015 21:21:08 +0200 Subject: Started adding test for reading game state --- include/game_state.h | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/game_state.h b/include/game_state.h index 1b35fc6..7ccef54 100644 --- a/include/game_state.h +++ b/include/game_state.h @@ -7,18 +7,22 @@ #include "spaceship.h" #include #include +#include class GameState { public: - GameState(std::string mapFilename); + GameState(std::istream &&mapFile); void logState(); + + const std::vector& aliens() const { return _aliens; } + private: - std::vector aliens; - std::vector bullets; - std::vector missiles; - std::vector shields; - std::vector spaceships; + std::vector _aliens; + std::vector _bullets; + std::vector _missiles; + std::vector _shields; + std::vector _spaceships; int addEntity(int x, int y, char type); }; -- cgit v1.2.3