Package io.sockit.gameclient
Enum ServerMessageType
- All Implemented Interfaces:
Serializable
,Comparable<ServerMessageType>
,java.lang.constant.Constable
public enum ServerMessageType extends Enum<ServerMessageType>
Enumeration of the possible Server message types
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description avtarChanged
Message received when when a player's avatar changescustomMessage
Message received a custom message is sent by the servererror
Message received when there is an error on the servergameAction
Message received when there is a non player action in the game.gameEntered
Message received when the Client enters a gamegameExited
Message received when the Client exists a gamegamePlayEnded
Message received when Game Play endsgamePlayStarted
Message received when new game play startsinvalidAction
Message received when a client plays an invalid actionlocations
Message received when Server sends list of locations to the ClientloggedIn
Message received when the client logins to the serverloggedOut
Message received when Client logs outnextTurn
Message received when new turn beginsnotEligibeToPlay
Message received when player is not eligible to take part in the game playoutOfTurnPlayed
Message received when an action is played out of turn by the ClientroomData
Message received when room state (data) is updatedroomDestroyed
Message received when room joined by the Client is destroyedroomJoined
Message received when room is joined by a clientroomLeft
Message received when Client leaves the roomroomList
Message received when server sends list of roomList to the ClientseatLeft
Message received when a player leaves a seatseatTaken
Message received when a seat is takenserverShutDown
Message received when Server shuts downsessionRejoined
Message received when session is rejoinedsessionTimedOut
Message received when session times outturnPlayed
Message received when a player plays his turnuserData
Message received when user data is updated -
Method Summary
Modifier and Type Method Description static ServerMessageType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ServerMessageType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
roomData
Message received when room state (data) is updated -
sessionTimedOut
Message received when session times out -
sessionRejoined
Message received when session is rejoined -
roomJoined
Message received when room is joined by a client -
seatTaken
Message received when a seat is taken -
notEligibeToPlay
Message received when player is not eligible to take part in the game play -
gamePlayStarted
Message received when new game play starts -
nextTurn
Message received when new turn begins -
gameAction
Message received when there is a non player action in the game. For e.g. in poker this coupld be flop card dealt -
invalidAction
Message received when a client plays an invalid action -
outOfTurnPlayed
Message received when an action is played out of turn by the Client -
turnPlayed
Message received when a player plays his turn -
gamePlayEnded
Message received when Game Play ends -
seatLeft
Message received when a player leaves a seat -
roomLeft
Message received when Client leaves the room -
roomDestroyed
Message received when room joined by the Client is destroyed -
loggedOut
Message received when Client logs out -
locations
Message received when Server sends list of locations to the Client -
roomList
Message received when server sends list of roomList to the Client -
avtarChanged
Message received when when a player's avatar changes -
serverShutDown
Message received when Server shuts down -
error
Message received when there is an error on the server -
loggedIn
Message received when the client logins to the server -
userData
Message received when user data is updated -
gameEntered
Message received when the Client enters a game -
gameExited
Message received when the Client exists a game -
customMessage
Message received a custom message is sent by the server
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-