Mercurial > hg > ristipolku
diff src/IDMPoint.java @ 161:fb33d3796942
Rename source directory.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 21 Jun 2016 12:53:53 +0300 |
parents | game/IDMPoint.java@d6d92845d6a2 |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/IDMPoint.java Tue Jun 21 12:53:53 2016 +0300 @@ -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); + } +}