|
|||||||||
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.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 IWorldObject
getId
in class GameInfo
public void setSimTime(long SimTime)
GameInfo
setSimTime
in class GameInfo
public GameInfoStatic getStatic()
public GameInfoLocal getLocal()
public GameInfoShared getShared()
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 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 |