infinitewisdom.model.agent
Class PlayerAgentAdapter

java.lang.Object
  extended by infinitewisdom.model.agent.PlayerAgentAdapter
All Implemented Interfaces:
PlayerAgentIF, TimerStepIF
Direct Known Subclasses:
CPUPlayerAgent2Dom1, GUIPlayerAgent1Dom1

public abstract class PlayerAgentAdapter
extends java.lang.Object
implements PlayerAgentIF


Nested Class Summary
static class PlayerAgentAdapter.CommandBuffer
           
 
Field Summary
protected  ServerCommandParserIF commandParser
           
protected  java.util.HashMap<UnitIF,PlayerAgentAdapter.CommandBuffer> commands
           
protected  PlayerIF player
           
 
Constructor Summary
PlayerAgentAdapter()
           
 
Method Summary
 java.util.HashMap<UnitIF,PlayerAgentAdapter.CommandBuffer> getCommands()
           
 PlayerIF getPlayer()
           
 void sendClientCommand(ClientCommandIF sm)
           
 void sendServerCommand(ServerCommand sc)
           
 void setPlayer(PlayerIF player)
           
 void step()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

player

protected PlayerIF player

commandParser

protected ServerCommandParserIF commandParser

commands

protected java.util.HashMap<UnitIF,PlayerAgentAdapter.CommandBuffer> commands
Constructor Detail

PlayerAgentAdapter

public PlayerAgentAdapter()
Method Detail

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