|
Amazing Mazes | ||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||
java.lang.Object
|
+--Mouse
|
+--ScatterBrained
The ScatterBrained mouse will use a strategy that moves in a random direction. Because it is derived from the base class Mouse, it has no memory.
| Fields inherited from class Mouse |
curPosition_,
mazeAdapter_,
stack_ |
| Constructor Summary | |
ScatterBrained()
|
|
| Method Summary | |
protected Direction |
makeAMove()
For each turn the makeAMove method is called. |
| Methods inherited from class Mouse |
advance,
distanceToGoal,
passagewayOpenAt,
randomInt,
retreat,
solveMaze |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public ScatterBrained()
| Method Detail |
protected Direction makeAMove()
|
Author: Andrew Bridges Copyright © 2001 |
||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||