changeset 79:83a79d1698c8

Method for creating a copy of a point.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 03 Mar 2011 04:56:34 +0200
parents ef523a3cebf3
children 3d34258ccc2c
files game/IDMPoint.java
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/game/IDMPoint.java	Thu Mar 03 04:31:41 2011 +0200
+++ b/game/IDMPoint.java	Thu Mar 03 04:56:34 2011 +0200
@@ -13,4 +13,9 @@
         this.x = x;
         this.y = y;
     }
+
+    public IDMPoint copy()
+    {
+        return new IDMPoint(x, y);
+    }
 }