comparison game/IDMPoint.java @ 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 83a79d1698c8
children 4c0dec72e2f0
comparison
equal deleted inserted replaced
125:054dd486ea84 126:c4d0ceec99ef
12 { 12 {
13 this.x = x; 13 this.x = x;
14 this.y = y; 14 this.y = y;
15 } 15 }
16 16
17 public IDMPoint(IDMPoint pt)
18 {
19 this.x = pt.x;
20 this.y = pt.y;
21 }
22
17 public IDMPoint copy() 23 public IDMPoint copy()
18 { 24 {
19 return new IDMPoint(x, y); 25 return new IDMPoint(x, y);
20 } 26 }
21 } 27 }