| Package | com.electrotank.electroserver4.message.request |
| Class | public class JoinGameRequest |
| Inheritance | JoinGameRequest com.electrotank.electroserver4.message.request.RequestImpl |
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new instance of the JoinGameRequest class.
| JoinGameRequest | ||
|
getGameId():Number
The id of the game you want to join.
| JoinGameRequest | ||
|
getGameType():String
The type of game you want to join.
| JoinGameRequest | ||
|
getPassword():String
The password being used to join the game.
| JoinGameRequest | ||
| JoinGameRequest | |||
|
setGameId(gameId:Number):void
Sets the id of the game you want to join.
| JoinGameRequest | ||
|
setGameType(gameType:String):void
The type of game you want to join.
| JoinGameRequest | ||
|
setPassword(password:String):void
If a password is needed to join this game, specify it here.
| JoinGameRequest | ||
| JoinGameRequest | |||
| JoinGameRequest | () | constructor |
public function JoinGameRequest()Creates a new instance of the JoinGameRequest class.
| getGameId | () | method |
public function getGameId():NumberThe id of the game you want to join.
ReturnsNumber — The id of the game you want to join.
|
| getGameType | () | method |
public function getGameType():StringThe type of game you want to join.
ReturnsString — The type of game you want to join.
|
| getPassword | () | method |
public function getPassword():StringThe password being used to join the game.
ReturnsString — The passowd being used to join the game.
|
| getRealMessage | () | method |
| setGameId | () | method |
public function setGameId(gameId:Number):voidSets the id of the game you want to join.
ParametersgameId:Number — The id of the game you want to join.
|
| setGameType | () | method |
public function setGameType(gameType:String):voidThe type of game you want to join. Game type is something that is registered on the server that defined the game, liked Chess.
ParametersgameType:String — The type of game you want to join.
|
| setPassword | () | method |
public function setPassword(password:String):voidIf a password is needed to join this game, specify it here.
Parameterspassword:String — The password needed to join the game, if any.
|
| validate | () | method |