Package sfs3.client.requests
Class RoomEvents
java.lang.Object
sfs3.client.requests.RoomEvents
The RoomEvents class contains a specific subset of the
RoomSettings required to create a Room. It defines which events
related to the Room will be fired by the SmartFox client.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether or not the userCountChange event should be dispatched whenever the users (or players+spectators) count changes in the Room.booleanIndicates whether the userEnterRoom event should be dispatched whenever a user joins the Room or not.booleanIndicates whether the userExitRoom event should be dispatched whenever a user leaves the Room or not.booleanIndicates whether or not the userVariablesUpdate event should be dispatched whenever a user in the Room updates his User Variables.voidsetAllowUserCountChange(boolean allowUserCountChange) voidsetAllowUserEnter(boolean allowUserEnter) voidsetAllowUserExit(boolean allowUserExit) voidsetAllowUserVariablesUpdate(boolean allowUserVariablesUpdate)
-
Constructor Details
-
RoomEvents
public RoomEvents()Creates a new RoomEvents instance. The RoomSettings.events property must be set to this instance during Room creation.- See Also:
-
-
Method Details
-
getAllowUserEnter
public boolean getAllowUserEnter()Indicates whether the userEnterRoom event should be dispatched whenever a user joins the Room or not. The default value isfalse- See Also:
-
setAllowUserEnter
public void setAllowUserEnter(boolean allowUserEnter) - See Also:
-
getAllowUserExit
public boolean getAllowUserExit()Indicates whether the userExitRoom event should be dispatched whenever a user leaves the Room or not. The default value isfalse- See Also:
-
setAllowUserExit
public void setAllowUserExit(boolean allowUserExit) - See Also:
-
getAllowUserCountChange
public boolean getAllowUserCountChange()Indicates whether or not the userCountChange event should be dispatched whenever the users (or players+spectators) count changes in the Room. The default value isfalse- See Also:
-
setAllowUserCountChange
public void setAllowUserCountChange(boolean allowUserCountChange) - See Also:
-
getAllowUserVariablesUpdate
public boolean getAllowUserVariablesUpdate()Indicates whether or not the userVariablesUpdate event should be dispatched whenever a user in the Room updates his User Variables. The default value isfalse- See Also:
-
setAllowUserVariablesUpdate
public void setAllowUserVariablesUpdate(boolean allowUserVariablesUpdate) - See Also:
-