diff game/IDMPoint.java @ 162:e8eeac403e5f

Backed out changeset fb33d3796942
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 01 Dec 2016 14:33:25 +0200
parents src/IDMPoint.java@fb33d3796942
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/game/IDMPoint.java	Thu Dec 01 14:33:25 2016 +0200
@@ -0,0 +1,27 @@
+/*
+ * Ristipolku IDM point
+ * (C) Copyright 2011 Matti 'ccr' Hämäläinen <ccr@tnsp.org>
+ */
+package game;
+
+public class IDMPoint
+{
+    public float x, y;
+
+    public IDMPoint(float x, float y)
+    {
+        this.x = x;
+        this.y = y;
+    }
+
+    public IDMPoint(IDMPoint pt)
+    {
+        this.x = pt.x;
+        this.y = pt.y;
+    }
+
+    public IDMPoint copy()
+    {
+        return new IDMPoint(x, y);
+    }
+}