public interface IUT2004Server extends IUnrealServer<IUT2004Bot>
Modifier and Type | Method and Description |
---|---|
void |
connectNativeBot(String botName,
String botType,
int team)
Connects a UT native bot to the current map.
|
Collection<MapList> |
getAvailableMaps() |
cz.cuni.amis.utils.flag.Flag<Double> |
getGameSpeedFlag()
The flag raises events even when the game speed was changed by another
UTServer instance or directly in game.
|
UT2004Map |
getMap()
Get current map from the server
|
String |
getMapName() |
List<Mutator> |
getMutators()
Reeturns list of all mutators available on the server.
|
cz.cuni.amis.utils.collections.ObservableCollection<? extends NativeUnrealBotAdapter> |
getNativeAgents()
Returns list of all non pogamut players connected to the game server.
|
cz.cuni.amis.utils.collections.ObservableCollection<Player> |
getPlayers()
Returns list of all players connected to the game server.
|
void |
setAddress(String host,
int port)
Sets the address of the server to different location - does not automatically reconnect,
use
IAgent.stop() and IAgent.start() . |
Future<Boolean> |
setGameMap(String map)
Method that initiates map-change.
|
connectNativeBot
getWorldAddress
getAgents
getAct
getWorldView
getComponentId, getIntrospection, getLogger, getName, getState, kill, pause, resume, start, startPaused, stop
getEventBus
void setAddress(String host, int port)
IAgent.stop()
and IAgent.start()
.setAddress
in interface IUnrealServer<IUT2004Bot>
address
- Collection<MapList> getAvailableMaps()
getAvailableMaps
in interface IUnrealServer<IUT2004Bot>
cz.cuni.amis.utils.flag.Flag<Double> getGameSpeedFlag()
getGameSpeedFlag
in interface IUnrealServer<IUT2004Bot>
String getMapName()
getMapName
in interface IUnrealServer<IUT2004Bot>
Future<Boolean> setGameMap(String map) throws MapChangeException
Note that the object must restart itself in order to reconnect to the new server.
setGameMap
in interface IUnrealServer<IUT2004Bot>
map
- MapChangeException
cz.cuni.amis.utils.collections.ObservableCollection<Player> getPlayers()
Custom-bots (created by Pogamut platform) can be recognized. They have non-null+non-empty Player.getJmx()
field.
getPlayers
in interface IUnrealServer<IUT2004Bot>
cz.cuni.amis.utils.collections.ObservableCollection<? extends NativeUnrealBotAdapter> getNativeAgents()
getNativeAgents
in interface IUnrealServer<IUT2004Bot>
List<Mutator> getMutators()
getMutators
in interface IUnrealServer<IUT2004Bot>
void connectNativeBot(String botName, String botType, int team)
botName
- UT2004Map getMap()
getMap
in interface IUnrealServer<IUT2004Bot>
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.