| Package | com.electrotank.electroserver4.entities |
| Class | public class ServerGame |
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new instance of the ServerGame class.
| ServerGame | ||
|
Gets the game details property of the game.
| ServerGame | ||
|
getGameId():Number
Gets the game id.
| ServerGame | ||
|
getLocked():Boolean
Gets the locked property of the game.
| ServerGame | ||
|
getPasswordProtected():Boolean
Gets the passwordProtected property of the game.
| ServerGame | ||
|
setGameDetails(gameDetails:EsObject):void
Sets the game details property of the game.
| ServerGame | ||
|
setGameId(gameId:Number):void
Sets the id of the game.
| ServerGame | ||
|
setLocked(locked:Boolean):void
Sets the locked property of the game.
| ServerGame | ||
|
setPasswordProtected(passwordProtected:Boolean):void
Sets the passwordProtected property.
| ServerGame | ||
| ServerGame | () | constructor |
public function ServerGame()Creates a new instance of the ServerGame class.
| getGameDetails | () | method |
public function getGameDetails():EsObjectGets the game details property of the game. Every game has a public property represented by an EsObject.
ReturnsEsObject —
The game details property of the game.
|
| getGameId | () | method |
public function getGameId():NumberGets the game id.
ReturnsNumber — Returns the game id.
|
| getLocked | () | method |
public function getLocked():BooleanGets the locked property of the game.
ReturnsBoolean — The locked property of the game.
|
| getPasswordProtected | () | method |
public function getPasswordProtected():BooleanGets the passwordProtected property of the game.
ReturnsBoolean — The password protected property of the game.
|
| setGameDetails | () | method |
public function setGameDetails(gameDetails:EsObject):voidSets the game details property of the game. Every game has a public property represented by an EsObject.
ParametersgameDetails:EsObject — The game details property of the game.
|
| setGameId | () | method |
public function setGameId(gameId:Number):voidSets the id of the game.
ParametersgameId:Number — The id of the game.
|
| setLocked | () | method |
public function setLocked(locked:Boolean):voidSets the locked property of the game. If true that means the game is locked and cannot be joined.
Parameterslocked:Boolean — The locked property of the game.
|
| setPasswordProtected | () | method |
public function setPasswordProtected(passwordProtected:Boolean):voidSets the passwordProtected property. If true, then the server game requires a password to join.
ParameterspasswordProtected:Boolean — True or false.
|