|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectNetworkMove
public class NetworkMove
An object representation of a move, without a reference to the Player who made the move.
| Constructor Summary | |
|---|---|
NetworkMove(int startLoc,
int endLoc)
Create a move with the starting location and ending location passed in as paremeters. |
|
NetworkMove(Move aMove)
Gets the start and end locations from an incoming Move. |
|
| Method Summary | |
|---|---|
int |
endLocation()
Return the ending location of this move. |
void |
execute(NetworkPlayer parent)
Makes a move from the NetworkPlayer. |
int |
startLocation()
Return the starting location of this move. |
java.lang.String |
toString()
toString method for this object that will give start and end locations. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NetworkMove(int startLoc,
int endLoc)
startLoc - The starting point of the moveendLoc - The ending point of the movepublic NetworkMove(Move aMove)
aMove - - the incoming Move object.| Method Detail |
|---|
public void execute(NetworkPlayer parent)
parent - - the NetworkPlayer.public int startLocation()
public int endLocation()
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 | ||||||||