|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.mazewar.Client
public abstract class Client
An abstract class for clients in a maze.
Method Summary | |
---|---|
void |
addClientListener(ClientListener cl)
Add an object to be notified when this Client performs an
action. |
java.lang.String |
getName()
Get the name of this Client . |
Direction |
getOrientation()
Find out what direction this Client is presently facing. |
Point |
getPoint()
Obtain the location of this Client . |
void |
registerMaze(Maze maze)
Register this Client as being contained by the specified
Maze . |
void |
removeClientListener(ClientListener cl)
Remove an object from the action notification queue. |
void |
unregisterMaze()
Inform the Client that it has been taken out of the Maze
in which it is located. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void registerMaze(Maze maze)
Client
as being contained by the specified
Maze
. Naturally a Client
cannot be registered with
more than one Maze
at a time.
maze
- The Maze
in which the Client
is being
placed.public void unregisterMaze()
Client
that it has been taken out of the Maze
in which it is located. The Client
must already be registered
with a Maze
before this can be called.
public java.lang.String getName()
Client
.
String
naming the Client
.public Point getPoint()
Client
.
Point
specifying the location of the Client
.public Direction getOrientation()
Client
is presently facing.
Direction
.public void addClientListener(ClientListener cl)
Client
performs an
action.
cl
- An object that implementing the cl
interface.public void removeClientListener(ClientListener cl)
cl
- The ClientListener
to remove.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |