|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcz.cuni.amis.pogamut.base.communication.messages.InfoMessage
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.GameInfo
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.GameInfoCompositeImpl
public class GameInfoCompositeImpl

Composite implementation of the NFO abstract message. It wraps Local/Shared/Static parts in single object allowing to presenting a nice facade for users.
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 |
|---|
| Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.GameInfo |
|---|
GameInfo.GameInfoUpdate |
| Field Summary | |
|---|---|
protected GameInfoLocalImpl |
partLocal
|
protected GameInfoStaticImpl |
partStatic
|
| Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.GameInfo |
|---|
GameInfoId, PROTOTYPE, SimTime |
| Constructor Summary | |
|---|---|
GameInfoCompositeImpl()
Parameter-less contructor for the message. |
|
GameInfoCompositeImpl(GameInfoCompositeImpl original)
Cloning constructor. |
|
GameInfoCompositeImpl(GameInfoLocalImpl partLocal,
GameInfoSharedImpl partShared,
GameInfoStaticImpl partStatic)
Composite-impl constructor. |
|
| 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()
|
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). |
void |
setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically. |
java.lang.String |
toHtmlString()
|
java.lang.String |
toString()
|
| Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.GameInfo |
|---|
getSimTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected GameInfoStaticImpl partStatic
protected GameInfoLocalImpl partLocal
| Constructor Detail |
|---|
public GameInfoCompositeImpl()
public GameInfoCompositeImpl(GameInfoLocalImpl partLocal,
GameInfoSharedImpl partShared,
GameInfoStaticImpl partStatic)
partLocal - local-part of the messagepartShared - shared-part of the messagepartStatic - static-part of the messagepublic GameInfoCompositeImpl(GameInfoCompositeImpl original)
original - | Method Detail |
|---|
public UnrealId getId()
IWorldObject
getId in interface IWorldObjectgetId in class GameInfopublic void setSimTime(long SimTime)
GameInfo
setSimTime in class GameInfopublic GameInfoStatic getStatic()
public GameInfoLocal getLocal()
public GameInfoShared getShared()
public java.lang.String getGametype()
GameInfo
getGametype in class GameInfopublic java.lang.String getLevel()
GameInfo
getLevel in class GameInfopublic boolean isWeaponStay()
GameInfo
isWeaponStay in class GameInfopublic double getTimeLimit()
GameInfo
getTimeLimit in class GameInfopublic int getFragLimit()
GameInfo
getFragLimit in class GameInfopublic long getGoalTeamScore()
GameInfo
getGoalTeamScore in class GameInfopublic int getMaxTeams()
GameInfo
getMaxTeams in class GameInfopublic int getMaxTeamSize()
GameInfo
getMaxTeamSize in class GameInfopublic Location getRedBaseLocation()
GameInfo
getRedBaseLocation in class GameInfopublic Location getBlueBaseLocation()
GameInfo
getBlueBaseLocation in class GameInfopublic Location getFirstDomPointLocation()
GameInfo
getFirstDomPointLocation in class GameInfopublic Location getSecondDomPointLocation()
GameInfo
getSecondDomPointLocation in class GameInfopublic boolean isGamePaused()
GameInfo
isGamePaused in class GameInfopublic boolean isBotsPaused()
GameInfo
isBotsPaused in class GameInfopublic Location getFactoryLocation()
GameInfo
getFactoryLocation in class GameInfopublic double getFactoryRadius()
GameInfo
getFactoryRadius in class GameInfopublic Location getDisperserLocation()
GameInfo
getDisperserLocation in class GameInfopublic double getDisperserRadius()
GameInfo
getDisperserRadius in class GameInfopublic double getFactoryAdrenalineCount()
GameInfo
getFactoryAdrenalineCount in class GameInfopublic java.lang.String getFactorySpawnType()
GameInfo
getFactorySpawnType in class GameInfopublic java.lang.String toString()
toString in class GameInfopublic java.lang.String toHtmlString()
toHtmlString in class GameInfo
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||