edu.ou.pacman.client
Class ClosePelletGrabber
java.lang.Object
edu.ou.pacman.client.AbstractPacmanClient
edu.ou.pacman.client.ClosePelletGrabber
- All Implemented Interfaces:
- Client<ImmutablePacmanState,ImmutablePacmanCharacter,Direction>
public class ClosePelletGrabber
- extends AbstractPacmanClient
Agent designed to grab any nearby pellets (within 1 space reach).
Does nothing to avoid ghosts.
- Author:
- Derek Rushing
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClosePelletGrabber
public ClosePelletGrabber()
startAction
public Direction startAction(ImmutablePacmanState world,
ImmutablePacmanCharacter client)
endAction
public void endAction(ImmutablePacmanState world,
ImmutablePacmanCharacter client)
initialize
public void initialize(java.io.File config)
loadData
public void loadData(java.io.File data)
shutdown
public void shutdown()