cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class GameInfoStaticImpl

Package class diagram package GameInfoStaticImpl
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.GameInfoStaticImpl
All Implemented Interfaces:
IWorldObject, IStaticWorldObject

public class GameInfoStaticImpl
extends GameInfoStatic

Implementation of the static part of the GameBots2004 message NFO.

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.


Nested Class Summary
static class GameInfoStaticImpl.GameInfoStaticUpdate
           
 
Field Summary
protected  Location BlueBaseLocation
          Location of the base spawning the blue flag (team 1) (BotCTFGame).
protected  Location DisperserLocation
          Sent only in BotScenario game type.
protected  double DisperserRadius
          Sent only in BotScenario game type.
protected  double FactoryAdrenalineCount
          Sent only in BotScenario game type.
protected  Location FactoryLocation
          Sent only in BotScenario game type.
protected  double FactoryRadius
          Sent only in BotScenario game type.
protected  String FactorySpawnType
          Sent only in BotScenario game type.
protected  Location FirstDomPointLocation
          Location of the first dom point (BotDoubleDomination).
protected  String Gametype
          What you are playing (BotDeathMatch, BotTeamGame, BotCTFGame,BotDoubleDomination).
protected  String Level
          Name of map in game.
protected  int MaxTeams
          Max number of teams.
protected  Location RedBaseLocation
          Location of the base spawning the red flag (team 0) (BotCTFGame).
protected  Location SecondDomPointLocation
          Location of the second dom point (BotDoubleDomination).
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.GameInfoStatic
GameInfoId, SimTime
 
Constructor Summary
GameInfoStaticImpl()
          Parameter-less contructor for the message.
GameInfoStaticImpl(GameInfo original)
          Cloning constructor from the full message.
GameInfoStaticImpl(GameInfoStatic original)
          Cloning constructor from the message part.
GameInfoStaticImpl(GameInfoStaticImpl original)
          Cloning constructor from the full message.
 
Method Summary
 GameInfoStaticImpl 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.
 String getFactorySpawnType()
          Sent only in BotScenario game type.
 Location getFirstDomPointLocation()
          Location of the first dom point (BotDoubleDomination).
 String getGametype()
          What you are playing (BotDeathMatch, BotTeamGame, BotCTFGame,BotDoubleDomination).
 UnrealId getId()
           
 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).
 boolean isDifferentFrom(IStaticWorldObject other)
           
 void setSimTime(long SimTime)
          Used by Yylex to slip correct time of the object or programmatically.
 String toHtmlString()
           
 String toString()
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.GameInfoStatic
getCompositeClass, getSimTime
 
Methods inherited from class cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
toJsonLiteral
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Gametype

protected String Gametype
What you are playing (BotDeathMatch, BotTeamGame, BotCTFGame,BotDoubleDomination).


Level

protected String Level
Name of map in game.


MaxTeams

protected int MaxTeams
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.


RedBaseLocation

protected Location RedBaseLocation
Location of the base spawning the red flag (team 0) (BotCTFGame).


BlueBaseLocation

protected Location BlueBaseLocation
Location of the base spawning the blue flag (team 1) (BotCTFGame).


FirstDomPointLocation

protected Location FirstDomPointLocation
Location of the first dom point (BotDoubleDomination).


SecondDomPointLocation

protected Location SecondDomPointLocation
Location of the second dom point (BotDoubleDomination).


FactoryLocation

protected Location FactoryLocation
Sent only in BotScenario game type. Location of the factory.


FactoryRadius

protected double FactoryRadius
Sent only in BotScenario game type. Radius of the factory.


DisperserLocation

protected Location DisperserLocation
Sent only in BotScenario game type. Location of the goal point where UDamagePack should be taken.


DisperserRadius

protected double DisperserRadius
Sent only in BotScenario game type. Radius of the disperser point.


FactoryAdrenalineCount

protected double FactoryAdrenalineCount
Sent only in BotScenario game type. How much adrenaline we need to activate the factory.


FactorySpawnType

protected String FactorySpawnType
Sent only in BotScenario game type. Pickup class our factory spawns when used properly. Item will be spawned at the bot's location.

Constructor Detail

GameInfoStaticImpl

public GameInfoStaticImpl()
Parameter-less contructor for the message.


GameInfoStaticImpl

public GameInfoStaticImpl(GameInfo original)
Cloning constructor from the full message.

Parameters:
original -

GameInfoStaticImpl

public GameInfoStaticImpl(GameInfoStaticImpl original)
Cloning constructor from the full message.

Parameters:
original -

GameInfoStaticImpl

public GameInfoStaticImpl(GameInfoStatic original)
Cloning constructor from the message part.

Parameters:
original -
Method Detail

getId

public UnrealId getId()
Specified by:
getId in interface IWorldObject
Overrides:
getId in class GameInfoStatic

setSimTime

public void setSimTime(long SimTime)
Description copied from class: GameInfoStatic
Used by Yylex to slip correct time of the object or programmatically.

Overrides:
setSimTime in class GameInfoStatic

clone

public GameInfoStaticImpl clone()
Specified by:
clone in class GameInfoStatic

getGametype

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

Specified by:
getGametype in class GameInfoStatic

getLevel

public 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 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

isDifferentFrom

public boolean isDifferentFrom(IStaticWorldObject other)
Specified by:
isDifferentFrom in interface IStaticWorldObject
Overrides:
isDifferentFrom in class GameInfoStatic

toString

public String toString()
Overrides:
toString in class GameInfoStatic

toHtmlString

public String toHtmlString()
Overrides:
toHtmlString in class GameInfoStatic


Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.