|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.mazewar.Client
net.mazewar.LocalClient
net.mazewar.RobotClient
public class RobotClient
A very naive implementation of a computer controlled LocalClient
. Basically
it stumbles about and shoots.
Constructor Summary | |
---|---|
RobotClient(java.lang.String name)
Create a computer controlled LocalClient . |
Method Summary | |
---|---|
void |
registerMaze(Maze maze)
Override the abstract Client 's registerMaze method so that we know when to start
control thread. |
void |
run()
This method is the control loop for an active RobotClient . |
void |
unregisterMaze()
Override the abstract Client 's unregisterMaze method so we know when to stop the
control thread. |
Methods inherited from class net.mazewar.Client |
---|
addClientListener, getName, getOrientation, getPoint, removeClientListener |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RobotClient(java.lang.String name)
LocalClient
.
name
- The name of this RobotClient
.Method Detail |
---|
public void registerMaze(Maze maze)
Client
's registerMaze method so that we know when to start
control thread.
registerMaze
in class Client
maze
- The Maze
that we are begin registered with.public void unregisterMaze()
Client
's unregisterMaze method so we know when to stop the
control thread.
unregisterMaze
in class Client
public void run()
RobotClient
.
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |