infinitewisdom.model.agent
Class PlayerAgentAdapter
java.lang.Object
infinitewisdom.model.agent.PlayerAgentAdapter
- All Implemented Interfaces:
- PlayerAgentIF, TimerStepIF
- Direct Known Subclasses:
- CPUPlayerAgent2Dom1, GUIPlayerAgent1Dom1
public abstract class PlayerAgentAdapter
- extends java.lang.Object
- implements PlayerAgentIF
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
player
protected PlayerIF player
commandParser
protected ServerCommandParserIF commandParser
commands
protected java.util.HashMap<UnitIF,PlayerAgentAdapter.CommandBuffer> commands
PlayerAgentAdapter
public PlayerAgentAdapter()
step
public void step()
- Specified by:
step
in interface TimerStepIF
getPlayer
public PlayerIF getPlayer()
- Specified by:
getPlayer
in interface PlayerAgentIF
setPlayer
public void setPlayer(PlayerIF player)
- Specified by:
setPlayer
in interface PlayerAgentIF
sendServerCommand
public void sendServerCommand(ServerCommand sc)
sendClientCommand
public void sendClientCommand(ClientCommandIF sm)
getCommands
public java.util.HashMap<UnitIF,PlayerAgentAdapter.CommandBuffer> getCommands()