cz.cuni.amis.pogamut.udk.server.impl
Class UDKServer
java.lang.Object
cz.cuni.amis.pogamut.base.agent.impl.AbstractAgent
cz.cuni.amis.pogamut.base.agent.impl.AbstractObservingAgent<WORLD_VIEW>
cz.cuni.amis.pogamut.base.agent.impl.AbstractGhostAgent<WORLD_VIEW,ACT>
cz.cuni.amis.pogamut.base.server.AbstractWorldServer<WORLD_VIEW,ACT,IUDKBot>
cz.cuni.amis.pogamut.udk.server.impl.AbstractUDKServer<UDKWorldView,IAct>
cz.cuni.amis.pogamut.udk.server.impl.UDKServer
- All Implemented Interfaces:
- IAgent, IGhostAgent, IObservingAgent, IComponent, IComponentAware, IControllable, IWorldAgentsObserver<IUDKBot>, IWorldServer<IUDKBot>, IUDKServer, IUnrealServer<IUDKBot>
public class UDKServer
- extends AbstractUDKServer<UDKWorldView,IAct>
- implements IUDKServer
Methods inherited from class cz.cuni.amis.pogamut.udk.server.impl.AbstractUDKServer |
connectNativeBot, createPasswordReply, getAgents, getAvailableMaps, getGameInfo, getGameSpeedFlag, getMap, getMapName, getMutators, getNativeAgents, getPasswordReply, getPlayers, getWorldView, killAgent, readyCommandRequested, resetAgent, setAddress, setPassword, stopAgent |
Methods inherited from class cz.cuni.amis.pogamut.base.agent.impl.AbstractAgent |
addDependency, addDependency, addDependency, addJMXComponents, awaitState, awaitState, componentFatalError, componentStarted, componentStarted, componentStopped, componentStopping, createAgentJMX, createIntrospection, equals, getComponentId, getEventBus, getIntrospection, getJMX, getLog, getLogger, getName, getState, hashCode, inState, kill, notInState, pause, pauseAgent, preKillAgent, preStopAgent, resetEvent, resume, resumeAgent, setState, start, startPaused, startPausedAgent, stop, toString |
Methods inherited from interface cz.cuni.amis.pogamut.base.agent.IAgent |
getComponentId, getIntrospection, getLogger, getName, getState, kill, pause, resume, start, startPaused, stop |
MAX_CHANGING_MAP_ATTEMPTS
public static final int MAX_CHANGING_MAP_ATTEMPTS
- How many times we're going to try to connect to the GB2004
before declaring that the change-map has failed.
- See Also:
- Constant Field Values
MAP_CHANGE_CONNECT_INTERVAL_MILLIS
public static final int MAP_CHANGE_CONNECT_INTERVAL_MILLIS
- See Also:
- Constant Field Values
playerJoinsListener
protected IWorldEventListener<PlayerJoinsGame> playerJoinsListener
mapListListener
protected IWorldEventListener<MapListObtained> mapListListener
changingMapMutex
protected Object changingMapMutex
changingMap
protected boolean changingMap
changingMapAttempt
protected int changingMapAttempt
targetMap
protected String targetMap
mapChangeFuture
protected UDKServer.MapChangeFuture mapChangeFuture
UDKServer
@Inject
public UDKServer(UDKAgentParameters params,
IAgentLogger agentLogger,
IComponentBus bus,
SocketConnection connection,
UDKWorldView worldView,
IAct act)
getParams
public UDKAgentParameters getParams()
- Returns parameters that were passed into the agent during the construction.
This is a great place to parametrize your agent. Note that you may pass arbitrary subclass of UDKAgentParameters
to the constructor/factory/runner and pick them up here.
- Returns:
- parameters
startAgent
protected void startAgent()
- Overrides:
startAgent
in class AbstractUDKServer<UDKWorldView,IAct>
reset
protected void reset()
- Description copied from class:
AbstractUDKServer
- Called during stop/kill/reset events.
- Overrides:
reset
in class AbstractUDKServer<UDKWorldView,IAct>
setGameMap
public Future<Boolean> setGameMap(String map)
throws MapChangeException
- As of now, this just plain does not work. If you started the server yourself, you may use
UCCWrapper#changeMap(java.lang.String, long)
which works.
- Specified by:
setGameMap
in interface IUDKServer
- Specified by:
setGameMap
in interface IUnrealServer<IUDKBot>
- Parameters:
map
-
- Returns:
-
- Throws:
MapChangeException
Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.