changeset 126:c4d0ceec99ef

Add IDMPoint constructor copying from another IDMPoint.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 24 Nov 2011 21:08:36 +0200
parents 054dd486ea84
children e60b4885eafe
files game/IDMPoint.java
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/game/IDMPoint.java	Thu Nov 24 19:46:09 2011 +0200
+++ b/game/IDMPoint.java	Thu Nov 24 21:08:36 2011 +0200
@@ -14,6 +14,12 @@
         this.y = y;
     }
 
+    public IDMPoint(IDMPoint pt)
+    {
+        this.x = pt.x;
+        this.y = pt.y;
+    }
+
     public IDMPoint copy()
     {
         return new IDMPoint(x, y);