Unity uClientCore > URoomView

URoomView Abstract-style Class

Implements

org.moock.unity.URoomListener

Constructor

URoomView(room)

Arguments

room
The URoom instance this view is observing.

Methods

onAddClient(e)
onJoin(e)
onLeave(e)
onNumClients(e)
onRemoveClient(e)
onUpdateClientAttribute(e)
onUpdateRoomAttribute(e)

Properties

room A reference to the URoom instance this view is observing.
client A reference to this application's UClient instance.

Description

The URoomView class provides "do-nothing" implementations for all methods defined by URoomListener. URoomView is not meant to be instantiated directly, but exists merely as a convenience for creating listeners. To create a new URoomEvent listener class, simply subclass URoomView and implement only the desired methods. (You could also implement URoomListener directly, and not subclass URoomView, but then you'd be obligated to provide implementations for every method in URoomListener).



Documentation Version

1.0.1