Package sfs3.client.requests.mmo
Class SetUserPositionRequest
java.lang.Object
sfs3.client.requests.BaseRequest
sfs3.client.requests.mmo.SetUserPositionRequest
- All Implemented Interfaces:
sfs3.client.requests.IClientRequest
Updates the User position inside an MMORoom.
MMORooms represent virtual environments and can host any number of users. Based on their position, the system allows users within a certain range from each other (Area of Interest, or AoI) to interact. This request allows the current user to update his position inside the MMORoom, which in turn will trigger a SFSEvent.PROXIMITY_LIST_UPDATE event for all users that fall within his AoI.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAPI internal usage onlystatic final StringAPI internal usage onlystatic final StringAPI internal usage onlystatic final StringAPI internal usage onlystatic final StringAPI internal usage onlystatic final StringAPI internal usage onlyFields 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
ConstructorsConstructorDescriptionSetUserPositionRequest(Vec3D position, Room room) Creates a new SetUserPositionRequest instance. -
Method Summary
Methods inherited from class sfs3.client.requests.BaseRequest
getId, getRequest, getTargetController, getTransportType, setId, setTargetController, setTransportType
-
Field Details
-
KEY_ROOM
API internal usage only- See Also:
-
KEY_VEC3D
API internal usage only- See Also:
-
KEY_PLUS_USER_LIST
API internal usage only- See Also:
-
KEY_MINUS_USER_LIST
API internal usage only- See Also:
-
KEY_PLUS_ITEM_LIST
API internal usage only- See Also:
-
KEY_MINUS_ITEM_LIST
API internal usage only- See Also:
-
-
Constructor Details
-
SetUserPositionRequest
Creates a new SetUserPositionRequest instance. The instance must be passed to the SmartFox.send() method for the request to be performed.- Parameters:
position- The user position.room- The MMORoom object corresponding to the Room where the position should be set; if null, the last Room joined by the user is used.- See Also:
-
-
Method Details
-
validate
- Throws:
SFSValidationException
-
execute
- Throws:
SFSException
-