|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sg.edu.nus.comp.cs3243.pipedream.Player
Player is the abstract class which you'll need to extend for this assignment. You'll need to provide three simple accessor methods that allow the framework to get your matric number, nus.edu.sg email address and your name.
Don't forget to include the play() method! :-) You'll have to pass the play method an instance of the Driver class so it can access the accessor methods that give you the state of the board, queue and ooze time and direction.
$Log: Player.java,v $ Revision 1.1 2004/01/15 10:29:22 rpnlpir Initial revision Revision 1.1 2004/01/15 05:39:30 rpnlpir Initial revision
Driver
Constructor Summary | |
Player()
|
Method Summary | |
abstract java.lang.String |
getEmail()
Implement this method. |
abstract java.lang.String |
getMatric()
Implement this method. |
abstract java.lang.String |
getName()
Implement this method. |
abstract java.lang.String |
getTagLine()
Implement this method. |
abstract Action |
play(Driver d)
Implement this method. |
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 abstract java.lang.String getMatric()
public abstract java.lang.String getName()
public abstract java.lang.String getEmail()
public abstract java.lang.String getTagLine()
public abstract Action play(Driver d)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |