|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jrummikub.model.Stone
public class Stone
Basic Rummikub Stone
Field Summary | |
---|---|
private StoneColor |
color
|
private boolean |
joker
|
private static long |
serialVersionUID
|
private int |
value
|
Constructor Summary | |
---|---|
Stone(int value,
StoneColor color)
Creates a normal stone of a given color and value |
|
Stone(StoneColor color)
Creates a joker of the given color. |
Method Summary | |
---|---|
StoneColor |
getColor()
Returns the color of the stone. |
float |
getHeight()
Get the height of the object |
int |
getValue()
Returns the value of the stone. |
float |
getWidth()
Get the width of the object |
boolean |
isJoker()
Returns whether the stone is a joker or not. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private int value
private StoneColor color
private final boolean joker
Constructor Detail |
---|
public Stone(StoneColor color)
color
- joker colorpublic Stone(int value, StoneColor color)
value
- stone valuecolor
- stone colorMethod Detail |
---|
public StoneColor getColor()
public boolean isJoker()
public int getValue()
public float getWidth()
Sizeable
getWidth
in interface Sizeable
public float getHeight()
Sizeable
getHeight
in interface Sizeable
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |