|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.communication.messages.InfoMessage cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.GameInfo cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.GameInfoMessage
public class GameInfoMessage
Implementation of the GameBots2004 message NFO contains also its Local/Shared/Static subpart class definitions..
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 | |
---|---|
class |
GameInfoMessage.GameInfoLocalMessage
Implementation of the local part of the GameBots2004 message NFO, used to facade NFOMessage. |
class |
GameInfoMessage.GameInfoSharedMessage
Implementation of the shared part of the GameBots2004 message NFO, used to facade NFOMessage. |
class |
GameInfoMessage.GameInfoStaticMessage
Implementation of the static part of the GameBots2004 message NFO, used to facade NFOMessage. |
Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.GameInfo |
---|
GameInfo.GameInfoUpdate |
Field Summary | |
---|---|
protected Location |
BlueBaseLocation
Location of the base spawning the blue flag (team 1) (BotCTFGame). |
protected boolean |
BotsPaused
If the game is paused just for bots - human controlled players can normally move. |
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 java.lang.String |
FactorySpawnType
Sent only in BotScenario game type. |
protected Location |
FirstDomPointLocation
Location of the first dom point (BotDoubleDomination). |
protected int |
FragLimit
Number of kills needed to win game (BotDeathMatch only). |
protected boolean |
GamePaused
If the game is paused - nobody can move. |
protected java.lang.String |
Gametype
What you are playing (BotDeathMatch, BotTeamGame, BotCTFGame,BotDoubleDomination). |
protected long |
GoalTeamScore
Number of points a team needs to win the game (BotTeamGame, BotCTFGame, BotDoubleDomination). |
protected java.lang.String |
Level
Name of map in game. |
protected int |
MaxTeams
Max number of teams. |
protected int |
MaxTeamSize
Max number of players per side (BotTeamGame, BotCTFGame, BotDoubleDomination). |
protected Location |
RedBaseLocation
Location of the base spawning the red flag (team 0) (BotCTFGame). |
protected Location |
SecondDomPointLocation
Location of the second dom point (BotDoubleDomination). |
protected ITeamId |
TeamId
|
protected double |
TimeLimit
Maximum time game will last (if tied at end may goe to "sudden death overtime" - depends on the game type). |
protected boolean |
WeaponStay
If true respawned weapons will stay on the ground after picked up (but bot cannot pickup same weapon twice). |
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.GameInfo |
---|
GameInfoId, PROTOTYPE, SimTime |
Constructor Summary | |
---|---|
GameInfoMessage()
Parameter-less contructor for the message. |
|
GameInfoMessage(GameInfoMessage original)
Cloning constructor from the full message. |
|
GameInfoMessage(java.lang.String Gametype,
java.lang.String Level,
boolean WeaponStay,
double TimeLimit,
int FragLimit,
long GoalTeamScore,
int MaxTeams,
int MaxTeamSize,
Location RedBaseLocation,
Location BlueBaseLocation,
Location FirstDomPointLocation,
Location SecondDomPointLocation,
boolean GamePaused,
boolean BotsPaused,
Location FactoryLocation,
double FactoryRadius,
Location DisperserLocation,
double DisperserRadius,
double FactoryAdrenalineCount,
java.lang.String FactorySpawnType)
Creates new instance of the message GameInfo. |
Method Summary | |
---|---|
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). |
int |
getFragLimit()
Number of kills needed to win game (BotDeathMatch only). |
java.lang.String |
getGametype()
What you are playing (BotDeathMatch, BotTeamGame, BotCTFGame,BotDoubleDomination). |
long |
getGoalTeamScore()
Number of points a team needs to win the game (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. |
GameInfoLocal |
getLocal()
|
int |
getMaxTeams()
Max number of teams. |
int |
getMaxTeamSize()
Max number of players per side (BotTeamGame, BotCTFGame, BotDoubleDomination). |
Location |
getRedBaseLocation()
Location of the base spawning the red flag (team 0) (BotCTFGame). |
Location |
getSecondDomPointLocation()
Location of the second dom point (BotDoubleDomination). |
GameInfoShared |
getShared()
|
GameInfoStatic |
getStatic()
|
ITeamId |
getTeamId()
|
double |
getTimeLimit()
Maximum time game will last (if tied at end may goe to "sudden death overtime" - depends on the game type). |
boolean |
isBotsPaused()
If the game is paused just for bots - human controlled players can normally move. |
boolean |
isGamePaused()
If the game is paused - nobody can move. |
boolean |
isWeaponStay()
If true respawned weapons will stay on the ground after picked up (but bot cannot pickup same weapon twice). |
protected void |
setTeamId(ITeamId TeamId)
Used by Yylex to slip corretn TeamId. |
java.lang.String |
toHtmlString()
|
java.lang.String |
toString()
|
IWorldObjectUpdateResult<IWorldObject> |
update(IWorldObject object)
|
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.GameInfo |
---|
getSimTime, setSimTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldChangeEvent |
---|
getSimTime |
Field Detail |
---|
protected ITeamId TeamId
protected java.lang.String Gametype
protected java.lang.String Level
protected boolean WeaponStay
protected double TimeLimit
protected int FragLimit
protected long GoalTeamScore
protected int MaxTeams
protected int MaxTeamSize
protected Location RedBaseLocation
protected Location BlueBaseLocation
protected Location FirstDomPointLocation
protected Location SecondDomPointLocation
protected boolean GamePaused
protected boolean BotsPaused
protected Location FactoryLocation
protected double FactoryRadius
protected Location DisperserLocation
protected double DisperserRadius
protected double FactoryAdrenalineCount
protected java.lang.String FactorySpawnType
Constructor Detail |
---|
public GameInfoMessage()
public GameInfoMessage(java.lang.String Gametype, java.lang.String Level, boolean WeaponStay, double TimeLimit, int FragLimit, long GoalTeamScore, int MaxTeams, int MaxTeamSize, Location RedBaseLocation, Location BlueBaseLocation, Location FirstDomPointLocation, Location SecondDomPointLocation, boolean GamePaused, boolean BotsPaused, Location FactoryLocation, double FactoryRadius, Location DisperserLocation, double DisperserRadius, double FactoryAdrenalineCount, java.lang.String FactorySpawnType)
Gametype
- What you are playing (BotDeathMatch, BotTeamGame,
BotCTFGame,BotDoubleDomination).Level
- Name of map in game.WeaponStay
- If true respawned weapons will stay on the ground after picked up (but bot cannot pickup same weapon twice).TimeLimit
- Maximum time game will last (if tied at end may goe to
"sudden death overtime" - depends on the game type).FragLimit
- Number of kills needed to win game (BotDeathMatch only).GoalTeamScore
- Number of points a team needs to win the game (BotTeamGame,
BotCTFGame, BotDoubleDomination).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.MaxTeamSize
- Max number of players per side (BotTeamGame, BotCTFGame,
BotDoubleDomination).RedBaseLocation
- Location of the base spawning the red flag (team 0) (BotCTFGame).BlueBaseLocation
- Location of the base spawning the blue flag (team 1) (BotCTFGame).FirstDomPointLocation
- Location of the first dom point (BotDoubleDomination).SecondDomPointLocation
- Location of the second dom point (BotDoubleDomination).GamePaused
- If the game is paused - nobody can move.BotsPaused
- If the game is paused just for bots - human controlled
players can normally move.FactoryLocation
- Sent only in BotScenario game type. Location of the factory.FactoryRadius
- Sent only in BotScenario game type. Radius of the factory.DisperserLocation
- Sent only in BotScenario game type. Location of the goal point where UDamagePack should be taken.DisperserRadius
- Sent only in BotScenario game type. Radius of the disperser point.FactoryAdrenalineCount
- Sent only in BotScenario game type. How much adrenaline we need to activate the factory.FactorySpawnType
- Sent only in BotScenario game type. Pickup class our factory spawns when used properly. Item will be spawned at the bot's location.public GameInfoMessage(GameInfoMessage original)
original
- Method Detail |
---|
public UnrealId getId()
IWorldObject
getId
in interface IWorldObjectUpdatedEvent
getId
in interface IWorldObject
getId
in class GameInfo
protected void setTeamId(ITeamId TeamId)
public ITeamId getTeamId()
public java.lang.String getGametype()
GameInfo
getGametype
in class GameInfo
public java.lang.String getLevel()
GameInfo
getLevel
in class GameInfo
public boolean isWeaponStay()
GameInfo
isWeaponStay
in class GameInfo
public double getTimeLimit()
GameInfo
getTimeLimit
in class GameInfo
public int getFragLimit()
GameInfo
getFragLimit
in class GameInfo
public long getGoalTeamScore()
GameInfo
getGoalTeamScore
in class GameInfo
public int getMaxTeams()
GameInfo
getMaxTeams
in class GameInfo
public int getMaxTeamSize()
GameInfo
getMaxTeamSize
in class GameInfo
public Location getRedBaseLocation()
GameInfo
getRedBaseLocation
in class GameInfo
public Location getBlueBaseLocation()
GameInfo
getBlueBaseLocation
in class GameInfo
public Location getFirstDomPointLocation()
GameInfo
getFirstDomPointLocation
in class GameInfo
public Location getSecondDomPointLocation()
GameInfo
getSecondDomPointLocation
in class GameInfo
public boolean isGamePaused()
GameInfo
isGamePaused
in class GameInfo
public boolean isBotsPaused()
GameInfo
isBotsPaused
in class GameInfo
public Location getFactoryLocation()
GameInfo
getFactoryLocation
in class GameInfo
public double getFactoryRadius()
GameInfo
getFactoryRadius
in class GameInfo
public Location getDisperserLocation()
GameInfo
getDisperserLocation
in class GameInfo
public double getDisperserRadius()
GameInfo
getDisperserRadius
in class GameInfo
public double getFactoryAdrenalineCount()
GameInfo
getFactoryAdrenalineCount
in class GameInfo
public java.lang.String getFactorySpawnType()
GameInfo
getFactorySpawnType
in class GameInfo
public GameInfoLocal getLocal()
getLocal
in interface ICompositeWorldObject
public GameInfoShared getShared()
getShared
in interface ICompositeWorldObject
public GameInfoStatic getStatic()
getStatic
in interface ICompositeWorldObject
public IWorldObjectUpdateResult<IWorldObject> update(IWorldObject object)
update
in interface IWorldObjectUpdatedEvent
public java.lang.String toString()
toString
in class GameInfo
public java.lang.String toHtmlString()
toHtmlString
in class GameInfo
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |