cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class GameInfoMessage.GameInfoStaticMessage

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.GameInfoStatic
          extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.GameInfoMessage.GameInfoStaticMessage
All Implemented Interfaces:
IWorldObject, IStaticWorldObject
Enclosing class:
GameInfoMessage

public class GameInfoMessage.GameInfoStaticMessage
extends GameInfoStatic

Implementation of the static part of the GameBots2004 message NFO, used to facade NFOMessage.

Complete message documentation: Asynchronous message. Sent as response to READY command. Information about the game. What type of game is it going to be, number of teams, maximum size of teams etc.


Field Summary
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.GameInfoStatic
GameInfoId, SimTime
 
Constructor Summary
GameInfoMessage.GameInfoStaticMessage()
           
 
Method Summary
 GameInfoMessage.GameInfoStaticMessage clone()
           
 Location getBlueBaseLocation()
          Location of the base spawning the blue flag (team 1) (BotCTFGame).
 Location getDisperserLocation()
          Sent only in BotScenario game type.
 double getDisperserRadius()
          Sent only in BotScenario game type.
 double getFactoryAdrenalineCount()
          Sent only in BotScenario game type.
 Location getFactoryLocation()
          Sent only in BotScenario game type.
 double getFactoryRadius()
          Sent only in BotScenario game type.
 java.lang.String getFactorySpawnType()
          Sent only in BotScenario game type.
 Location getFirstDomPointLocation()
          Location of the first dom point (BotDoubleDomination).
 java.lang.String getGametype()
          What you are playing (BotDeathMatch, BotTeamGame, BotCTFGame,BotDoubleDomination).
 UnrealId getId()
          Returns an id of the object that is unique among all world objects.
 java.lang.String getLevel()
          Name of map in game.
 int getMaxTeams()
          Max number of teams.
 Location getRedBaseLocation()
          Location of the base spawning the red flag (team 0) (BotCTFGame).
 Location getSecondDomPointLocation()
          Location of the second dom point (BotDoubleDomination).
 java.lang.String toHtmlString()
           
 java.lang.String toString()
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.GameInfoStatic
getCompositeClass, getSimTime, setSimTime
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GameInfoMessage.GameInfoStaticMessage

public GameInfoMessage.GameInfoStaticMessage()
Method Detail

getId

public UnrealId getId()
Description copied from interface: IWorldObject
Returns an id of the object that is unique among all world objects.

Specified by:
getId in interface IWorldObject
Overrides:
getId in class GameInfoStatic
Returns:

clone

public GameInfoMessage.GameInfoStaticMessage clone()
Specified by:
clone in class GameInfoStatic

getGametype

public java.lang.String getGametype()
What you are playing (BotDeathMatch, BotTeamGame, BotCTFGame,BotDoubleDomination).

Specified by:
getGametype in class GameInfoStatic

getLevel

public java.lang.String getLevel()
Name of map in game.

Specified by:
getLevel in class GameInfoStatic

getMaxTeams

public int getMaxTeams()
Max number of teams. Valid team range will be 0 to (MaxTeams - 1) (BotTeamGame, BotCTFGame, BotDoubleDomination). Usually there will be two teams - 0 and 1.

Specified by:
getMaxTeams in class GameInfoStatic

getRedBaseLocation

public Location getRedBaseLocation()
Location of the base spawning the red flag (team 0) (BotCTFGame).

Specified by:
getRedBaseLocation in class GameInfoStatic

getBlueBaseLocation

public Location getBlueBaseLocation()
Location of the base spawning the blue flag (team 1) (BotCTFGame).

Specified by:
getBlueBaseLocation in class GameInfoStatic

getFirstDomPointLocation

public Location getFirstDomPointLocation()
Location of the first dom point (BotDoubleDomination).

Specified by:
getFirstDomPointLocation in class GameInfoStatic

getSecondDomPointLocation

public Location getSecondDomPointLocation()
Location of the second dom point (BotDoubleDomination).

Specified by:
getSecondDomPointLocation in class GameInfoStatic

getFactoryLocation

public Location getFactoryLocation()
Sent only in BotScenario game type. Location of the factory.

Specified by:
getFactoryLocation in class GameInfoStatic

getFactoryRadius

public double getFactoryRadius()
Sent only in BotScenario game type. Radius of the factory.

Specified by:
getFactoryRadius in class GameInfoStatic

getDisperserLocation

public Location getDisperserLocation()
Sent only in BotScenario game type. Location of the goal point where UDamagePack should be taken.

Specified by:
getDisperserLocation in class GameInfoStatic

getDisperserRadius

public double getDisperserRadius()
Sent only in BotScenario game type. Radius of the disperser point.

Specified by:
getDisperserRadius in class GameInfoStatic

getFactoryAdrenalineCount

public double getFactoryAdrenalineCount()
Sent only in BotScenario game type. How much adrenaline we need to activate the factory.

Specified by:
getFactoryAdrenalineCount in class GameInfoStatic

getFactorySpawnType

public java.lang.String getFactorySpawnType()
Sent only in BotScenario game type. Pickup class our factory spawns when used properly. Item will be spawned at the bot's location.

Specified by:
getFactorySpawnType in class GameInfoStatic

toString

public java.lang.String toString()
Overrides:
toString in class GameInfoStatic

toHtmlString

public java.lang.String toHtmlString()
Overrides:
toHtmlString in class GameInfoStatic