|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jrummikub.model.Player
public class Player
Class managing player data. No methods in release 1
Constructor Summary | |
---|---|
Player(java.lang.String name,
java.awt.Color color)
Create a new player with a given name and color |
Method Summary | |
---|---|
java.awt.Color |
getColor()
Return the player's color |
IHand |
getHand()
Get the current hand of the player |
java.lang.String |
getName()
Return the name of the player |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Player(java.lang.String name, java.awt.Color color)
name
- player namecolor
- player's colorMethod Detail |
---|
public IHand getHand()
IPlayer
getHand
in interface IPlayer
public java.awt.Color getColor()
IPlayer
getColor
in interface IPlayer
public java.lang.String getName()
IPlayer
getName
in interface IPlayer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |