diff options
Diffstat (limited to 'labb4/Robot.cpp')
| -rw-r--r-- | labb4/Robot.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/labb4/Robot.cpp b/labb4/Robot.cpp index f25c101..f4c7fb3 100644 --- a/labb4/Robot.cpp +++ b/labb4/Robot.cpp @@ -25,3 +25,7 @@ unsigned int Robot::getCollisionCount() const { bool Robot::alive() const { return true; } + +Robot *Robot::clone() const { + return new Robot(*this); +} |
