nl.tudelft.goal.ut3.server
Class EnvironmentControllerServer
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,cz.cuni.amis.pogamut.ut2004.bot.IUT2004Bot>
cz.cuni.amis.pogamut.ut2004.server.impl.AbstractUT2004Server<cz.cuni.amis.pogamut.ut2004.communication.worldview.UT2004WorldView,cz.cuni.amis.pogamut.base.communication.command.IAct>
cz.cuni.amis.pogamut.ut2004.server.impl.UT2004Server
nl.tudelft.goal.ut3.server.EnvironmentControllerServer
- All Implemented Interfaces:
- cz.cuni.amis.pogamut.base.agent.IAgent, cz.cuni.amis.pogamut.base.agent.IGhostAgent, cz.cuni.amis.pogamut.base.agent.IObservingAgent, cz.cuni.amis.pogamut.base.component.IComponent, cz.cuni.amis.pogamut.base.component.IComponentAware, cz.cuni.amis.pogamut.base.component.IControllable, cz.cuni.amis.pogamut.base.server.IWorldAgentsObserver<cz.cuni.amis.pogamut.ut2004.bot.IUT2004Bot>, cz.cuni.amis.pogamut.base.server.IWorldServer<cz.cuni.amis.pogamut.ut2004.bot.IUT2004Bot>, IUnrealServer<cz.cuni.amis.pogamut.ut2004.bot.IUT2004Bot>, cz.cuni.amis.pogamut.ut2004.server.IUT2004Server
public class EnvironmentControllerServer
- extends cz.cuni.amis.pogamut.ut2004.server.impl.UT2004Server
Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.server.impl.UT2004Server |
cz.cuni.amis.pogamut.ut2004.server.impl.UT2004Server.MapChangeFuture |
Fields inherited from class cz.cuni.amis.pogamut.ut2004.server.impl.UT2004Server |
changingMap, changingMapAttempt, changingMapMutex, MAP_CHANGE_CONNECT_INTERVAL_MILLIS, mapChangeFuture, mapListListener, MAX_CHANGING_MAP_ATTEMPTS, playerJoinsListener, targetMap |
Fields inherited from class cz.cuni.amis.pogamut.base.server.AbstractWorldServer |
worldAddress |
Fields inherited from class cz.cuni.amis.pogamut.base.agent.impl.AbstractAgent |
events, INTROSPECTION_ROOT_NAME, log, LOG_CATEGORY_NAME |
Constructor Summary |
EnvironmentControllerServer(cz.cuni.amis.pogamut.ut2004.agent.params.UT2004AgentParameters params,
cz.cuni.amis.pogamut.base.utils.logging.IAgentLogger agentLogger,
cz.cuni.amis.pogamut.base.component.bus.IComponentBus bus,
cz.cuni.amis.pogamut.base.communication.connection.impl.socket.SocketConnection connection,
cz.cuni.amis.pogamut.ut2004.communication.worldview.UT2004WorldView worldView,
cz.cuni.amis.pogamut.base.communication.command.IAct act)
|
Method Summary |
void |
addInventory(UnrealId id,
String item)
|
Collection<nl.tudelft.goal.unreal.messages.Percept> |
bot()
Percept provided when another bot becomes visible to this bot. |
void |
changeTeam(UnrealId id)
|
Collection<nl.tudelft.goal.unreal.messages.Percept> |
navPoint()
Information about point in the map. |
void |
respawn(UnrealId id,
nl.tudelft.goal.unreal.messages.UnrealIdOrLocation unrealIdOrLocation,
cz.cuni.amis.pogamut.base3d.worldview.object.Rotation rotation)
|
void |
sendPausegame()
|
void |
sendResumeGame()
|
void |
setGameSpeed(Double speed)
|
void |
spawnItem(nl.tudelft.goal.unreal.messages.UnrealIdOrLocation unrealIdOrLocation,
cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType.Category category,
cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType.Group group)
|
void |
teleport(UnrealId id,
nl.tudelft.goal.unreal.messages.UnrealIdOrLocation unrealIdOrLocation,
cz.cuni.amis.pogamut.base3d.worldview.object.Rotation rotation)
|
Methods inherited from class cz.cuni.amis.pogamut.ut2004.server.impl.UT2004Server |
connectNativeBot, getParams, init, reset, setGameMap, startAgent, startPausedAgent |
Methods inherited from class cz.cuni.amis.pogamut.ut2004.server.impl.AbstractUT2004Server |
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.server.AbstractWorldServer |
getWorldAddress |
Methods inherited from class cz.cuni.amis.pogamut.base.agent.impl.AbstractGhostAgent |
getAct |
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, stop, toString |
Methods inherited from interface cz.cuni.amis.pogamut.ut2004.server.IUT2004Server |
connectNativeBot, getAvailableMaps, getGameSpeedFlag, getMap, getMapName, getMutators, getNativeAgents, getPlayers, setAddress |
Methods inherited from interface cz.cuni.amis.pogamut.base.server.IWorldServer |
getWorldAddress |
Methods inherited from interface cz.cuni.amis.pogamut.base.server.IWorldAgentsObserver |
getAgents |
Methods inherited from interface cz.cuni.amis.pogamut.base.agent.IGhostAgent |
getAct |
Methods inherited from interface cz.cuni.amis.pogamut.base.agent.IObservingAgent |
getWorldView |
Methods inherited from interface cz.cuni.amis.pogamut.base.agent.IAgent |
getComponentId, getIntrospection, getLogger, getName, getState, kill, pause, resume, start, startPaused, stop |
Methods inherited from interface cz.cuni.amis.pogamut.base.component.IComponentAware |
getEventBus |
EnvironmentControllerServer
@Inject
public EnvironmentControllerServer(cz.cuni.amis.pogamut.ut2004.agent.params.UT2004AgentParameters params,
cz.cuni.amis.pogamut.base.utils.logging.IAgentLogger agentLogger,
cz.cuni.amis.pogamut.base.component.bus.IComponentBus bus,
cz.cuni.amis.pogamut.base.communication.connection.impl.socket.SocketConnection connection,
cz.cuni.amis.pogamut.ut2004.communication.worldview.UT2004WorldView worldView,
cz.cuni.amis.pogamut.base.communication.command.IAct act)
sendResumeGame
public void sendResumeGame()
sendPausegame
public void sendPausegame()
addInventory
public void addInventory(UnrealId id,
String item)
respawn
public void respawn(UnrealId id,
nl.tudelft.goal.unreal.messages.UnrealIdOrLocation unrealIdOrLocation,
cz.cuni.amis.pogamut.base3d.worldview.object.Rotation rotation)
changeTeam
public void changeTeam(UnrealId id)
setGameSpeed
public void setGameSpeed(Double speed)
spawnItem
public void spawnItem(nl.tudelft.goal.unreal.messages.UnrealIdOrLocation unrealIdOrLocation,
cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType.Category category,
cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType.Group group)
teleport
public void teleport(UnrealId id,
nl.tudelft.goal.unreal.messages.UnrealIdOrLocation unrealIdOrLocation,
cz.cuni.amis.pogamut.base3d.worldview.object.Rotation rotation)
navPoint
public Collection<nl.tudelft.goal.unreal.messages.Percept> navPoint()
Information about point in the map. Together these form a directed graph
that spans the entire map.
Type: Once
Syntax: navPoint(UnrealID, location(X,Y,Z), [NeigsUnrealID])
- UnrealID: The unique id of this navpoint.
- Location: The location of this navpoint in the map.
- [NeigsUnrealID]: A list of Id's for the neighbouring navpoints that
are reachable from this navpoint.
bot
public Collection<nl.tudelft.goal.unreal.messages.Percept> bot()
Percept provided when another bot becomes visible to this bot.
Type: On change with negation.
Syntax: bot(UnrealId, Team, location(X,Y,Z), Weapon, FireMode)
- UnrealId: Unique identifier for this bot assigned by Unreal.
- Team: Either red or blue.
- location(X,Y,Z): Location of the bot in the world.
- Weapon: The weapon the bot is holding. TODO: Any of the
following:
- FireMode: Mode of shooting, either primary, secondary or none.
Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.