|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.computing.game.MoveTemplate
public class MoveTemplate
MoveTemplate just provides a skeleton implementation for the
GameMove interface, so you can focus soley on the game
specific properties of the GameMove. Move specific distingtions - other
than the player role - have to be specified by a subclass. If the only
distingtion for a move in a game is who plays the move, however, instances
of this class will in fact be sufficient for use in that game.
GameMove,
GamePlay,
Serialized Form| Field Summary | |
|---|---|
protected int |
player
DOCUMENT ME! |
| Constructor Summary | |
|---|---|
MoveTemplate(int player)
Creates a new MoveTemplate object. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
DOCUMENT ME! |
int |
getPlayer()
DOCUMENT ME! |
java.lang.String |
toString()
DOCUMENT ME! |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int player
| Constructor Detail |
|---|
public MoveTemplate(int player)
player - DOCUMENT ME!| Method Detail |
|---|
public int getPlayer()
getPlayer in interface GameMoveGamePlay.numberOfPlayers()public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - DOCUMENT ME!
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||