|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectMove
public class Move
An object representation of a move.
| Field Summary | |
|---|---|
Player |
thePlayer
The player that this move is intended for. |
| Constructor Summary | |
|---|---|
Move(Player player,
int startLoc,
int endLoc)
Create a move with the starting location and ending location passed in as paremeters. |
|
| Method Summary | |
|---|---|
int |
endLocation()
Return the ending location of this move. |
Player |
getPlayer()
Return the player who made this move |
int |
startLocation()
Return the starting location of this move. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public Player thePlayer
| Constructor Detail |
|---|
public Move(Player player,
int startLoc,
int endLoc)
startLoc - The starting point of the moveendLoc - The ending point of the move| Method Detail |
|---|
public Player getPlayer()
public int startLocation()
public int endLocation()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||