Made Direction a private static inner class of StoneTray
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@56 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
adcf9fdfb6
commit
c241d98ed9
2 changed files with 7 additions and 7 deletions
|
@ -1,7 +0,0 @@
|
||||||
package jrummikub.model;
|
|
||||||
|
|
||||||
/** Possible move directions in case of overlapping Stones/Sets */
|
|
||||||
|
|
||||||
public enum Direction {
|
|
||||||
LEFT, RIGHT, TOP, BOTTOM;
|
|
||||||
}
|
|
|
@ -14,6 +14,13 @@ public class StoneTray<E extends Sizeable> implements
|
||||||
Iterable<Pair<E, Position>> {
|
Iterable<Pair<E, Position>> {
|
||||||
protected List<Pair<E, Position>> objects = new ArrayList<Pair<E, Position>>();
|
protected List<Pair<E, Position>> objects = new ArrayList<Pair<E, Position>>();
|
||||||
|
|
||||||
|
/** Possible move directions in case of overlapping Stones/Sets */
|
||||||
|
|
||||||
|
private static enum Direction {
|
||||||
|
LEFT, RIGHT, TOP, BOTTOM;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes object from tray and returns it
|
* Removes object from tray and returns it
|
||||||
*
|
*
|
||||||
|
|
Reference in a new issue