public class GameInfoSharedImpl extends GameInfoShared
| Modifier and Type | Class and Description |
|---|---|
static class |
GameInfoSharedImpl.GameInfoSharedUpdate |
| Modifier and Type | Field and Description |
|---|---|
protected BooleanProperty |
myBotsPaused
If the game is paused just for bots - human controlled
players can normally move.
|
protected IntProperty |
myFragLimit
Number of kills needed to win game (BotDeathMatch only).
|
protected BooleanProperty |
myGamePaused
If the game is paused - nobody can move.
|
protected LongProperty |
myGoalTeamScore
Number of points a team needs to win the game (BotTeamGame,
BotCTFGame, BotDoubleDomination).
|
protected IntProperty |
myMaxTeamSize
Max number of players per side (BotTeamGame, BotCTFGame,
BotDoubleDomination).
|
protected DoubleProperty |
myTimeLimit
Maximum time game will last (if tied at end may goe to
"sudden death overtime" - depends on the game type).
|
protected BooleanProperty |
myWeaponStay
If true respawned weapons will stay on the ground after picked up (but bot cannot pickup same weapon twice).
|
protected HashMap<PropertyId,ISharedProperty> |
propertyMap |
BotsPausedPropertyToken, FragLimitPropertyToken, GameInfoId, GamePausedPropertyToken, GoalTeamScorePropertyToken, MaxTeamSizePropertyToken, SharedPropertyTokens, SimTime, TimeLimitPropertyToken, WeaponStayPropertyToken| Constructor and Description |
|---|
GameInfoSharedImpl(GameInfoSharedImpl source) |
GameInfoSharedImpl(WorldObjectId objectId,
Collection<ISharedProperty> properties) |
| Modifier and Type | Method and Description |
|---|---|
GameInfoSharedImpl |
clone() |
int |
getFragLimit()
Number of kills needed to win game (BotDeathMatch only).
|
long |
getGoalTeamScore()
Number of points a team needs to win the game (BotTeamGame,
BotCTFGame, BotDoubleDomination).
|
UnrealId |
getId() |
int |
getMaxTeamSize()
Max number of players per side (BotTeamGame, BotCTFGame,
BotDoubleDomination).
|
Map<PropertyId,ISharedProperty> |
getProperties() |
ISharedProperty |
getProperty(PropertyId id) |
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.
|
String |
toHtmlString() |
String |
toString() |
getCompositeClass, getSimTimetoJsonLiteralprotected HashMap<PropertyId,ISharedProperty> propertyMap
protected BooleanProperty myWeaponStay
protected DoubleProperty myTimeLimit
protected IntProperty myFragLimit
protected LongProperty myGoalTeamScore
protected IntProperty myMaxTeamSize
protected BooleanProperty myGamePaused
protected BooleanProperty myBotsPaused
public GameInfoSharedImpl(GameInfoSharedImpl source)
public GameInfoSharedImpl(WorldObjectId objectId, Collection<ISharedProperty> properties)
public UnrealId getId()
getId in interface IWorldObjectgetId in class GameInfoSharedpublic void setSimTime(long SimTime)
GameInfoSharedsetSimTime in class GameInfoSharedpublic GameInfoSharedImpl clone()
clone in interface ISharedWorldObjectclone in class GameInfoSharedpublic ISharedProperty getProperty(PropertyId id)
public Map<PropertyId,ISharedProperty> getProperties()
public boolean isWeaponStay()
isWeaponStay in class GameInfoSharedpublic double getTimeLimit()
getTimeLimit in class GameInfoSharedpublic int getFragLimit()
getFragLimit in class GameInfoSharedpublic long getGoalTeamScore()
getGoalTeamScore in class GameInfoSharedpublic int getMaxTeamSize()
getMaxTeamSize in class GameInfoSharedpublic boolean isGamePaused()
isGamePaused in class GameInfoSharedpublic boolean isBotsPaused()
isBotsPaused in class GameInfoSharedpublic String toString()
toString in class GameInfoSharedpublic String toHtmlString()
toHtmlString in class GameInfoSharedCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.