From b92072fc45676f9fe4669905f38a2aa3d6b92c4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Tue, 10 Nov 2020 00:34:54 +0100 Subject: vector, bool alive(), correct inheritance --- labb4/GameState.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'labb4/GameState.h') 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 robots; // the robots and the junk combined + std::vector robots; // the robots and the junk combined Hero hero; // the hero // private helpers -- cgit v1.2.1