1 |
/* |
/* |
2 |
Direction.java |
Direction.java |
3 |
* |
* |
4 |
* Copyright (c) 2002, Nico Lehmann |
* Copyright (c) 2002, Nico Lehmann |
5 |
* |
* |
6 |
* You may use and distribute under the terms of either the GNU Lesser |
* You may use and distribute under the terms of either the GNU Lesser |
7 |
* General Public License, either version 2 of the license or, |
* General Public License, either version 2 of the license or, |
8 |
* at your choice, any later version. Alternatively, you may use and |
* at your choice, any later version. Alternatively, you may use and |
9 |
* distribute under the terms of the XPL. |
* distribute under the terms of the XPL. |
10 |
* |
* |
11 |
* See the LICENSE.lgpl and LICENSE.xpl files for the specific terms of |
* See the LICENSE.lgpl and LICENSE.xpl files for the specific terms of |
12 |
* the licenses. |
* the licenses. |
13 |
* |
* |
14 |
* This software is distributed in the hope that it will be useful, |
* This software is distributed in the hope that it will be useful, |
15 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the README |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the README |
17 |
* file for more details. |
* file for more details. |
18 |
* |
* |
19 |
*/ |
*/ |
20 |
/* |
/* |
21 |
* Written by Nico Lehmann |
* Written by Nico Lehmann |
26 |
public class Direction{ |
public class Direction{ |
27 |
public Dim dim; |
public Dim dim; |
28 |
public int dir; |
public int dir; |
29 |
|
|
30 |
|
public Direction(Dim dim, int dir) { |
31 |
|
this.dim = dim; |
32 |
|
this.dir = dir; |
33 |
|
} |
34 |
} |
} |
35 |
|
|
36 |
|
|