Mercurial > hg > ristipolku
annotate game/IDMPoint.java @ 73:8c81a3e73a2b dev-0_5
Added custom point type for IDM widgets.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 02 Mar 2011 20:14:16 +0200 |
parents | |
children | 83a79d1698c8 |
rev | line source |
---|---|
73
8c81a3e73a2b
Added custom point type for IDM widgets.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
1 /* |
8c81a3e73a2b
Added custom point type for IDM widgets.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
2 * Ristipolku IDM point |
8c81a3e73a2b
Added custom point type for IDM widgets.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
3 * (C) Copyright 2011 Matti 'ccr' Hämäläinen <ccr@tnsp.org> |
8c81a3e73a2b
Added custom point type for IDM widgets.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
4 */ |
8c81a3e73a2b
Added custom point type for IDM widgets.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
5 package game; |
8c81a3e73a2b
Added custom point type for IDM widgets.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
6 |
8c81a3e73a2b
Added custom point type for IDM widgets.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
7 public class IDMPoint |
8c81a3e73a2b
Added custom point type for IDM widgets.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
8 { |
8c81a3e73a2b
Added custom point type for IDM widgets.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
9 public float x, y; |
8c81a3e73a2b
Added custom point type for IDM widgets.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
10 |
8c81a3e73a2b
Added custom point type for IDM widgets.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
11 public IDMPoint(float x, float y) |
8c81a3e73a2b
Added custom point type for IDM widgets.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
12 { |
8c81a3e73a2b
Added custom point type for IDM widgets.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
13 this.x = x; |
8c81a3e73a2b
Added custom point type for IDM widgets.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
14 this.y = y; |
8c81a3e73a2b
Added custom point type for IDM widgets.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
15 } |
8c81a3e73a2b
Added custom point type for IDM widgets.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
16 } |