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 avtarChangedMessage received when when a player's avatar changescustomMessageMessage received a custom message is sent by the servererrorMessage received when there is an error on the servergameActionMessage received when there is a non player action in the game.gameEnteredMessage received when the Client enters a gamegameExitedMessage received when the Client exists a gamegamePlayEndedMessage received when Game Play endsgamePlayStartedMessage received when new game play startsinvalidActionMessage received when a client plays an invalid actionlocationsMessage received when Server sends list of locations to the ClientloggedInMessage received when the client logins to the serverloggedOutMessage received when Client logs outnextTurnMessage received when new turn beginsnotEligibeToPlayMessage received when player is not eligible to take part in the game playoutOfTurnPlayedMessage received when an action is played out of turn by the ClientroomDataMessage received when room state (data) is updatedroomDestroyedMessage received when room joined by the Client is destroyedroomJoinedMessage received when room is joined by a clientroomLeftMessage received when Client leaves the roomroomListMessage received when server sends list of roomList to the ClientseatLeftMessage received when a player leaves a seatseatTakenMessage received when a seat is takenserverShutDownMessage received when Server shuts downsessionRejoinedMessage received when session is rejoinedsessionTimedOutMessage received when session times outturnPlayedMessage received when a player plays his turnuserDataMessage received when user data is updated -
Method Summary
Modifier and Type Method Description static ServerMessageTypevalueOf(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
-