|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.presents.dobj.DObject
com.threerings.parlor.tourney.data.TourneyObject
public class TourneyObject
Provides information on a specific tourney.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.threerings.io.Streamable |
|---|
Streamable.Closure |
| Field Summary | |
|---|---|
static int |
CANCELLED
Tourney has been cancelled. |
TourneyConfig |
config
The tourney configuration. |
static String |
CONFIG
The field name of the config field. |
static int |
FINISHED
Tourney has completed. |
DSet<Participant> |
participants
A DSet that accumulates Participant records for the players involved in this tourney. |
static String |
PARTICIPANTS
The field name of the participants field. |
static int |
PAUSED
Tourney is paused. |
static int |
PENDING
Tourney is pending and accepting participants. |
static int |
RUNNING
Tourney is currently running. |
static String |
STARTS_IN
The field name of the startsIn field. |
int |
startsIn
The real-time number of minutes before it starts. |
int |
state
The current state of the tourney. |
static String |
STATE
The field name of the state field. |
static String |
TOURNEY_SERVICE
The field name of the tourneyService field. |
TourneyMarshaller |
tourneyService
Provides the way in which tourney participants can communicate with the server. |
| Fields inherited from class com.threerings.presents.dobj.DObject |
|---|
_accessors, _atable, _controller, _deathWish, _listeners, _locattrs, _locks, _oid, _omgr, _scount, _subs, _tcancelled, _tcount, _tevent |
| Constructor Summary | |
|---|---|
TourneyObject()
|
|
| Method Summary | |
|---|---|
void |
addToParticipants(Participant elem)
Requests that the specified entry be added to the participants set. |
void |
removeFromParticipants(Comparable<?> key)
Requests that the entry matching the supplied key be removed from the participants set. |
void |
setConfig(TourneyConfig value)
Requests that the config field be set to the
specified value. |
void |
setParticipants(DSet<Participant> value)
Requests that the participants field be set to the
specified value. |
void |
setStartsIn(int value)
Requests that the startsIn field be set to the
specified value. |
void |
setState(int value)
Requests that the state field be set to the
specified value. |
void |
setTourneyService(TourneyMarshaller value)
Requests that the tourneyService field be set to the
specified value. |
void |
updateParticipants(Participant elem)
Requests that the specified entry be updated in the participants set. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
@Generated(value="com.threerings.presents.tools.GenDObjectTask") public static final String STATE
state field.
@Generated(value="com.threerings.presents.tools.GenDObjectTask") public static final String CONFIG
config field.
@Generated(value="com.threerings.presents.tools.GenDObjectTask") public static final String STARTS_IN
startsIn field.
@Generated(value="com.threerings.presents.tools.GenDObjectTask") public static final String TOURNEY_SERVICE
tourneyService field.
@Generated(value="com.threerings.presents.tools.GenDObjectTask") public static final String PARTICIPANTS
participants field.
public static final int PENDING
public static final int RUNNING
public static final int CANCELLED
public static final int PAUSED
public static final int FINISHED
public int state
public TourneyConfig config
public int startsIn
public TourneyMarshaller tourneyService
public DSet<Participant> participants
| Constructor Detail |
|---|
public TourneyObject()
| Method Detail |
|---|
@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void setState(int value)
state field be set to the
specified value. The local value will be updated immediately and an
event will be propagated through the system to notify all listeners
that the attribute did change. Proxied copies of this object (on
clients) will apply the value change when they received the
attribute changed notification.
@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void setConfig(TourneyConfig value)
config field be set to the
specified value. The local value will be updated immediately and an
event will be propagated through the system to notify all listeners
that the attribute did change. Proxied copies of this object (on
clients) will apply the value change when they received the
attribute changed notification.
@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void setStartsIn(int value)
startsIn field be set to the
specified value. The local value will be updated immediately and an
event will be propagated through the system to notify all listeners
that the attribute did change. Proxied copies of this object (on
clients) will apply the value change when they received the
attribute changed notification.
@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void setTourneyService(TourneyMarshaller value)
tourneyService field be set to the
specified value. The local value will be updated immediately and an
event will be propagated through the system to notify all listeners
that the attribute did change. Proxied copies of this object (on
clients) will apply the value change when they received the
attribute changed notification.
@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void addToParticipants(Participant elem)
participants set. The set will not change until the event is
actually propagated through the system.
@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void removeFromParticipants(Comparable<?> key)
participants set. The set will not change until the
event is actually propagated through the system.
@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void updateParticipants(Participant elem)
participants set. The set will not change until the event is
actually propagated through the system.
@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void setParticipants(DSet<Participant> value)
participants field be set to the
specified value. Generally one only adds, updates and removes
entries of a distributed set, but certain situations call for a
complete replacement of the set value. The local value will be
updated immediately and an event will be propagated through the
system to notify all listeners that the attribute did
change. Proxied copies of this object (on clients) will apply the
value change when they received the attribute changed notification.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||