summaryrefslogtreecommitdiffstats
path: root/labb4/GameState.h
diff options
context:
space:
mode:
Diffstat (limited to 'labb4/GameState.h')
-rw-r--r--labb4/GameState.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/labb4/GameState.h b/labb4/GameState.h
index 2fe2212..d31758d 100644
--- a/labb4/GameState.h
+++ b/labb4/GameState.h
@@ -25,7 +25,7 @@ public:
/*
* Clear and redraw entire playing field
*/
- void draw(QGraphicsScene* scene) const; // Clear and redraw entire playing field
+ void draw(QGraphicsScene* scene) const; // Clear and redraw entire playing field
/*
* Teleport hero to random location
@@ -37,9 +37,8 @@ public:
*/
void moveRobots();
- /* Count colliding robots
- * Also converts robots to junk while
- * checking collisions
+ /* Count colliding robots.
+ * Also converts robots to junk while checking collisions
*/
int countCollisions ();
@@ -69,7 +68,7 @@ public:
Hero getHero () const;
private:
- std::vector<Robot> robots; // the robots and the junk combined
+ std::vector<Robot *> robots; // the robots and the junk combined
Hero hero; // the hero
// private helpers