Constructor and Description
Modifier and Type
Method and Description
( move Grid currentGrid,
The move method is called every time a mouse reaches a new grid.
This method is called every time a mouse (including own implementation) consumes
a cheese and a new cheese is relocated.
This method is called every time the Mouse touches a bomb that is not planted by it.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public int move(
Description copied from class: Mouse
The move method is called every time a mouse reaches a new grid. This method
expects a decision to be made and returns the decision to be made on how to
move the Mouse next. Use the Mouse.UP, Mouse.DOWN, Mouse.LEFT, Mouse.RIGHT,
Mouse.BOMB as options for the decision. Players can do that is need to implement
an intelligent mouse.
move Mouse Parameters:
currentGrid - The current grid the Mouse is at.
cheese - The cheese to be seek.
Returns: The decision to move the mouse. Use Mouse.UP, Mouse.DOWN, Mouse.LEFT, Mouse.RIGHT, Mouse.BOMB