Mercurial > hg > ristipolku
comparison 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 |
comparison
equal
deleted
inserted
replaced
160:d5fbad999841 | 161:fb33d3796942 |
---|---|
1 /* | |
2 * Ristipolku IDM point | |
3 * (C) Copyright 2011 Matti 'ccr' Hämäläinen <ccr@tnsp.org> | |
4 */ | |
5 package game; | |
6 | |
7 public class IDMPoint | |
8 { | |
9 public float x, y; | |
10 | |
11 public IDMPoint(float x, float y) | |
12 { | |
13 this.x = x; | |
14 this.y = y; | |
15 } | |
16 | |
17 public IDMPoint(IDMPoint pt) | |
18 { | |
19 this.x = pt.x; | |
20 this.y = pt.y; | |
21 } | |
22 | |
23 public IDMPoint copy() | |
24 { | |
25 return new IDMPoint(x, y); | |
26 } | |
27 } |