From fc151ff1e1c862f5b40dc028c293ce083695d78c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Tue, 10 Nov 2020 00:57:06 +0100 Subject: gamestate cc, polymorphic clone --- labb4/Robot.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'labb4/Robot.h') diff --git a/labb4/Robot.h b/labb4/Robot.h index 8b445dc..cf05fab 100644 --- a/labb4/Robot.h +++ b/labb4/Robot.h @@ -19,6 +19,8 @@ public: virtual unsigned int getCollisionCount() const; virtual bool alive() const; + + virtual Robot *clone() const; }; #endif // ROBOT_H -- cgit v1.2.1