|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--MoveTracker
The MoveTracker class is a data structure that contains a dynamic list of the moves a robot has made.
| Constructor Summary | |
MoveTracker()
Initializes the moveTracker Vector |
|
| Method Summary | |
void |
add(Move mv)
Adds the inputed move to the moveTracker Vector. |
void |
clear()
Resets the moveTracker to an empty value. |
Move[] |
getMoveTracker()
Returns an array of the moves within the moveTracker Vector |
boolean |
isEmpty()
Checks to see if the moveTracker Vector is empty or not |
Move |
lastElement()
Returns the last move in the moveTracker Vector |
Move |
removeLast()
Removes the last move from the moveTracker Vector and returns it. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MoveTracker()
| Method Detail |
public boolean isEmpty()
public void clear()
public void add(Move mv)
mv - The move to be added to the vector
public Move removeLast()
public Move lastElement()
public Move[] getMoveTracker()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||