|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jrummikub.model.StoneTray<Stone> jrummikub.model.Hand
public class Hand
Class managing a Player
's Stone
s
Nested Class Summary |
---|
Nested classes/interfaces inherited from class jrummikub.model.StoneTray |
---|
StoneTray.Direction |
Field Summary | |
---|---|
static int |
HEIGHT
The height of the hand |
static int |
WIDTH
The width of the hand |
Fields inherited from class jrummikub.model.StoneTray |
---|
objects |
Constructor Summary | |
---|---|
Hand()
|
Method Summary | |
---|---|
protected Pair<Position,StoneTray.Direction> |
fixInvalidDrop(Stone stone,
Position pos,
StoneTray.Direction dir)
Checks whether the object may be placed on the given position, computes new position if not |
Methods inherited from class jrummikub.model.StoneTray |
---|
clone, drop, getPosition, getSize, iterator, pickUp |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface jrummikub.model.IStoneTray |
---|
clone, drop, getPosition, getSize, pickUp |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Field Detail |
---|
public static final int WIDTH
public static final int HEIGHT
Constructor Detail |
---|
public Hand()
Method Detail |
---|
protected Pair<Position,StoneTray.Direction> fixInvalidDrop(Stone stone, Position pos, StoneTray.Direction dir)
StoneTray
fixInvalidDrop
in class StoneTray<Stone>
stone
- to be droppedpos
- the object is dropped at
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |