|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectPlayer
public abstract class Player
Player is an abstract class indicating the functionality of players Concrete extensions can play the tournament
Constructor Summary | |
---|---|
Player()
|
Method Summary | |
---|---|
java.awt.Image |
getImage()
To retrieve the image associated with this player |
java.lang.String |
getName()
To retrieve the name of this player |
abstract char |
play(char[] history)
To instantiate a player this method must be implemented. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Player()
Method Detail |
---|
public java.awt.Image getImage()
public java.lang.String getName()
public abstract char play(char[] history)
history
- An array of up to 3 previous plays by my opponent
('c' or 'd' or ' ' if none)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |