|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UTWorld
Method Summary | |
---|---|
void |
addBotEnteredWorldListener(BotEnteredWorldListener listener)
Add listener to the bot-enetered-the-world event. |
void |
addBotLeftWorldListener(BotLeftWorldListener listener)
Add listener to the bot-left-the-world event. |
void |
addInventory(java.lang.String botUnrealId,
java.lang.String inventoryClass)
Adds the item to the bot's inventory. |
void |
botAutoTrace(java.lang.String botUnrealId,
boolean autoTrace)
TODO: comment |
void |
botInvulnerable(java.lang.String botUnrealId,
boolean invulnerable)
According to param 'invulnerable' sets (or retract) the invulnerability of the specified bot. |
void |
botManualSpawn(java.lang.String botUnrealId,
boolean manualSpawn)
TODO: comment |
java.lang.String |
connectBot(Agent newBot)
Connects new == NEVER STARTED agent to the world. |
java.lang.String |
connectBot(Agent newBot,
java.lang.String botName)
Connects new == NEVER STARTED agent to the world. |
void |
connectOriginalBot(java.lang.String unrealID,
Triple location,
int difficultyLevel,
int team)
Spawns the original UT bot. |
void |
disconnectAllBots()
Disconnect all bots from the world. |
void |
disconnectBot(Agent bot)
Disconnect the bot from the world |
void |
disconnectBot(java.lang.String botUnrealId)
Disconnect the bot from the world |
java.util.Collection<Player> |
getAllBots()
Returns list of players inside the world. |
java.util.Collection<UTMap> |
getAvailableMaps()
Returns names of maps available for current game in UT. |
java.util.Collection<Agent> |
getConnectedBots()
|
java.util.Map<java.lang.String,Item> |
getInventory()
|
java.util.Collection<Item> |
getItems()
Returns list of items, which are present in the world. |
java.lang.String |
getMap()
Returns name of the map which is loaded into UT2004. |
java.lang.String |
getName()
Returns human-readable identification of the server. |
java.util.Collection<NavPoint> |
getNavPoints()
Returns list of navpoints, which are present in the world. |
Flag<UTServerState> |
getServerStateFlag()
Returns flag with the state of server. |
void |
changeAttribute(java.lang.String botUnrealId,
java.lang.String attribute,
java.lang.String value)
Changes the bot's attribute value to a specified value. |
boolean |
isConnectionAlive()
Whether the connection is OK (healthy ;-). |
void |
kickBot(java.lang.String botUnrealId)
Kick bot from the game. |
Agent |
loadAgent(java.lang.String fullyClassifiedClassName)
Loads and instantiate a new agent object. |
java.lang.Class |
loadAgentClass(java.lang.String fullyClassifiedClassName)
Returns class of the required agent - special class loader is used. |
void |
pause(boolean completely)
Pause the world. |
void |
removeBotEnteredWorldListener(BotEnteredWorldListener listener)
Remove listener to the bot-enetered-the-world event. |
void |
removeBotLeftWorldListener(BotLeftWorldListener listener)
Remove listener to the bot-left-the-world event. |
void |
respawnBot(java.lang.String botUnrealId)
Respawns specified bot at random place. |
void |
respawnBot(java.lang.String botUnrealId,
Triple location)
Respawns specified bot at specified location. |
void |
resume()
Resume the world; |
void |
setBotName(java.lang.String botUnrealId,
java.lang.String name)
TODO: comment |
void |
setGameSpeed(double speed)
Sets game speed of UT2004. |
boolean |
setMap(java.lang.String name)
Sets the map of the UT2004, NO BLOCK |
boolean |
setMapAndWait(java.lang.String name)
Will send command to change the map IFF it's not the one that is currently running. |
void |
setVisionTime(double visionTime)
Set vision time... whatever it is. |
void |
startRecording(java.lang.String fileName)
Starts recording of the "replay" to a specified file at server. |
void |
stopRecording()
Stops recording of the "replay". |
Method Detail |
---|
boolean isConnectionAlive()
java.lang.String getName()
Flag<UTServerState> getServerStateFlag()
void addBotEnteredWorldListener(BotEnteredWorldListener listener)
listener
- void removeBotEnteredWorldListener(BotEnteredWorldListener listener)
listener
- void addBotLeftWorldListener(BotLeftWorldListener listener)
listener
- void removeBotLeftWorldListener(BotLeftWorldListener listener)
listener
- java.lang.String getMap()
boolean setMap(java.lang.String name) throws PogamutException
PogamutException
boolean setMapAndWait(java.lang.String name) throws PogamutException
mapName
-
PogamutException
java.util.Collection<UTMap> getAvailableMaps() throws PogamutException
PogamutException
java.util.Collection<NavPoint> getNavPoints() throws PogamutException
PogamutException
java.util.Collection<Item> getItems() throws PogamutException
PogamutException
java.util.Collection<Player> getAllBots() throws PogamutException
PogamutException
java.util.Collection<Agent> getConnectedBots()
java.util.Map<java.lang.String,Item> getInventory()
java.lang.String connectBot(Agent newBot) throws PogamutException
newBot
-
PogamutException
java.lang.String connectBot(Agent newBot, java.lang.String botName) throws PogamutException
newBot
- botName
-
PogamutException
void connectOriginalBot(java.lang.String unrealID, Triple location, int difficultyLevel, int team) throws PogamutException
unrealID
- identificator of the bot class inside UTlocation
- difficultyLevel
- team
-
PogamutException
void respawnBot(java.lang.String botUnrealId) throws PogamutException
botUnrealId
-
PogamutException
void respawnBot(java.lang.String botUnrealId, Triple location) throws PogamutException
botUnrealId
- location
-
PogamutException
void kickBot(java.lang.String botUnrealId) throws PogamutException
botUnrealId
- Id of bot we want to kick from the game
PogamutException
void disconnectBot(java.lang.String botUnrealId)
botUnrealId
- void disconnectBot(Agent bot)
bot
- void disconnectAllBots()
void pause(boolean completely) throws PogamutException
completely
-
PogamutException
void resume() throws PogamutException
PogamutException
void setVisionTime(double visionTime) throws PogamutException
PogamutException
void addInventory(java.lang.String botUnrealId, java.lang.String inventoryClass) throws PogamutException
botUnrealId
- inventoryClass
-
PogamutException
void changeAttribute(java.lang.String botUnrealId, java.lang.String attribute, java.lang.String value) throws PogamutException
botUnrealId
- attribute
- value
-
PogamutException
void botInvulnerable(java.lang.String botUnrealId, boolean invulnerable) throws PogamutException
botUnrealId
- invulnerable
-
PogamutException
void botAutoTrace(java.lang.String botUnrealId, boolean autoTrace) throws PogamutException
PogamutException
void botManualSpawn(java.lang.String botUnrealId, boolean manualSpawn) throws PogamutException
PogamutException
void setBotName(java.lang.String botUnrealId, java.lang.String name) throws PogamutException
PogamutException
void setGameSpeed(double speed) throws PogamutException
speed
-
PogamutException
void startRecording(java.lang.String fileName) throws PogamutException
fileName
-
PogamutException
void stopRecording() throws PogamutException
PogamutException
java.lang.Class loadAgentClass(java.lang.String fullyClassifiedClassName) throws PogamutException
fullyClassifiedName
- e.g. hunter.Main
PogamutException
- usualy class not found exceptionAgent loadAgent(java.lang.String fullyClassifiedClassName) throws PogamutException
fullyClassifiedName
- e.g. hunter.Main
PogamutException
- usualy class not found exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |