edu.ou.pacman.client
Class ClosePelletGrabber

java.lang.Object
  extended by edu.ou.pacman.client.AbstractPacmanClient
      extended by 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

Constructor Summary
ClosePelletGrabber()
           
 
Method Summary
 void endAction(ImmutablePacmanState world, ImmutablePacmanCharacter client)
           
 void initialize(java.io.File config)
           
 void loadData(java.io.File data)
           
 void shutdown()
           
 Direction startAction(ImmutablePacmanState world, ImmutablePacmanCharacter client)
           
 
Methods inherited from class edu.ou.pacman.client.AbstractPacmanClient
getDisplayName, setDisplayName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClosePelletGrabber

public ClosePelletGrabber()
Method Detail

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()