summaryrefslogtreecommitdiffstats
path: root/labb4/Junk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'labb4/Junk.cpp')
-rw-r--r--labb4/Junk.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/labb4/Junk.cpp b/labb4/Junk.cpp
index fc0edfe..2276240 100644
--- a/labb4/Junk.cpp
+++ b/labb4/Junk.cpp
@@ -28,3 +28,7 @@ unsigned int Junk::getCollisionCount() const {
bool Junk::alive() const {
return false;
}
+
+Junk *Junk::clone() const {
+ return new Junk(*this);
+}