Package sfs3.client.requests
Class CreateRoomRequest
java.lang.Object
sfs3.client.requests.BaseRequest
sfs3.client.requests.CreateRoomRequest
- All Implemented Interfaces:
sfs3.client.requests.IClientRequest
Creates a new Room in the current Zone.
If the creation is successful, a roomAdd event is dispatched to all the users who subscribed the Group to which the Room is associated, including the Room creator. Otherwise, a roomCreationError event is returned to the creator's client.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class sfs3.client.requests.BaseRequest
AddBuddy, AdminMessage, AutoJoin, BanUser, BanUsersFromRoom, BlockBuddy, CallExtension, ChangeRoomCapacity, ChangeRoomName, ChangeRoomPassword, ClusterInviteUsers, ClusterJoinOrCreate, CreateRoom, CreateSFSGame, FindRooms, FindUsers, GameServerConnectionRequired, GenericMessage, GetRoomList, GoOnline, Handshake, InitBuddyList, InvitationReply, InviteUser, JoinRoom, JoinRoomInvite, KEY_ERROR_CODE, KEY_ERROR_PARAMS, KickUser, LeaveRoom, Login, Logout, ManualDisconnection, ModeratorMessage, ObjectMessage, PingPong, PlayerToSpectator, PrivateMessage, PublicMessage, QuickJoinGame, QuickJoinOrCreateRoom, RemoveBuddy, SetBuddyVariables, SetRoomVariables, SetUserPosition, SetUserVariables, sfso, SpectatorToPlayer, SubscribeRoomGroup, targetController, UdpInit, UnsubscribeRoomGroup -
Constructor Summary
ConstructorsConstructorDescriptionCreateRoomRequest(RoomSettings settings) CreateRoomRequest(RoomSettings settings, boolean autoJoin) CreateRoomRequest(RoomSettings settings, boolean autoJoin, Room roomToLeave) Creates a new CreateRoomRequest instance. -
Method Summary
Methods inherited from class sfs3.client.requests.BaseRequest
getId, getRequest, getTargetController, getTransportType, setId, setTargetController, setTransportType
-
Field Details
-
KEY_ROOM
- See Also:
- Internal
-
KEY_NAME
- See Also:
- Internal
-
KEY_PASSWORD
- See Also:
- Internal
-
KEY_GROUP_ID
- See Also:
- Internal
-
KEY_ISGAME
- See Also:
- Internal
-
KEY_MAXUSERS
- See Also:
- Internal
-
KEY_MAXSPECTATORS
- See Also:
- Internal
-
KEY_MAXVARS
- See Also:
- Internal
-
KEY_ROOMVARS
- See Also:
- Internal
-
KEY_PERMISSIONS
- See Also:
- Internal
-
KEY_EVENTS
- See Also:
- Internal
-
KEY_EXTID
- See Also:
- Internal
-
KEY_EXTCLASS
- See Also:
- Internal
-
KEY_EXTPROP
- See Also:
- Internal
-
KEY_AUTOJOIN
- See Also:
- Internal
-
KEY_ROOM_TO_LEAVE
- See Also:
- Internal
-
KEY_ALLOW_JOIN_INVITATION_BY_OWNER
- See Also:
- Internal
-
KEY_MMO_DEFAULT_AOI
- See Also:
- Internal
-
KEY_MMO_MAP_LOW_LIMIT
- See Also:
- Internal
-
KEY_MMO_MAP_HIGH_LIMIT
- See Also:
- Internal
-
KEY_MMO_USER_MAX_LIMBO_SECONDS
- See Also:
- Internal
-
KEY_MMO_PROXIMITY_UPDATE_MILLIS
- See Also:
- Internal
-
KEY_MMO_SEND_ENTRY_POINT
- See Also:
- Internal
-
-
Constructor Details
-
CreateRoomRequest
Creates a new CreateRoomRequest instance. The instance must be passed to the SmartFox.send() method for the request to be performed.- Parameters:
settings- An object containing the Room configuration settings.autoJoin- Iftrue, the Room is joined as soon as it is created.roomToLeave- A Room object representing the Room that should be left if the new Room is auto-joined.- See Also:
-
CreateRoomRequest
- See Also:
-
CreateRoomRequest
- See Also:
-
-
Method Details
-
validate
- Throws:
SFSValidationException- Internal
-
execute
- Internal
-