|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.parlor.tourney.server.TourneyManager
public abstract class TourneyManager
Controls a running tourney.
| Field Summary |
|---|
| Fields inherited from interface com.threerings.parlor.tourney.data.TourneyCodes |
|---|
ALREADY_IN_PROGRESS, ALREADY_IN_TOURNEY, CANCELLED, FAILED_ENTRY_FEE, HAS_PLAYERS, NOT_IN_TOURNEY, TOO_LATE, TOO_LATE_LEAVE |
| Fields inherited from interface com.threerings.presents.data.InvocationCodes |
|---|
ACCESS_DENIED, E_ACCESS_DENIED, E_INTERNAL_ERROR, GLOBAL_GROUP, INTERNAL_ERROR |
| Constructor Summary | |
|---|---|
TourneyManager()
|
|
| Method Summary | |
|---|---|
void |
cancel(com.threerings.presents.data.ClientObject caller,
com.threerings.presents.client.InvocationService.ConfirmListener listener)
Handles a TourneyService.cancel(com.threerings.presents.client.InvocationService.ConfirmListener) request. |
void |
cancelTourney(String cause)
Cancel the tourney, return entry fees to all participants. |
int |
init(TourneyConfig config,
Comparable<?> key)
Initializes this tourney manager and prepares it for operation. |
boolean |
isFinished()
Returns true if the tourney is finished. |
boolean |
isPaused()
Returns true if the tourney is paused. |
boolean |
isPending()
Returns true if the tourney is pending. |
boolean |
isRunning()
Returns true if the tourney is running. |
void |
join(com.threerings.presents.data.ClientObject caller,
com.threerings.presents.client.InvocationService.ConfirmListener listener)
Handles a TourneyService.join(com.threerings.presents.client.InvocationService.ConfirmListener) request. |
void |
leave(com.threerings.presents.data.ClientObject caller,
com.threerings.presents.client.InvocationService.ConfirmListener listener)
Handles a TourneyService.leave(com.threerings.presents.client.InvocationService.ConfirmListener) request. |
abstract void |
notifyAllParticipants(String msg)
|
boolean |
shouldStart(long now)
Returns true if it is time or past time the tourney starts. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TourneyManager()
| Method Detail |
|---|
public int init(TourneyConfig config,
Comparable<?> key)
public void cancel(com.threerings.presents.data.ClientObject caller,
com.threerings.presents.client.InvocationService.ConfirmListener listener)
throws com.threerings.presents.server.InvocationException
TourneyProviderTourneyService.cancel(com.threerings.presents.client.InvocationService.ConfirmListener) request.
cancel in interface TourneyProvidercom.threerings.presents.server.InvocationException
public void join(com.threerings.presents.data.ClientObject caller,
com.threerings.presents.client.InvocationService.ConfirmListener listener)
throws com.threerings.presents.server.InvocationException
TourneyProviderTourneyService.join(com.threerings.presents.client.InvocationService.ConfirmListener) request.
join in interface TourneyProvidercom.threerings.presents.server.InvocationException
public void leave(com.threerings.presents.data.ClientObject caller,
com.threerings.presents.client.InvocationService.ConfirmListener listener)
throws com.threerings.presents.server.InvocationException
TourneyProviderTourneyService.leave(com.threerings.presents.client.InvocationService.ConfirmListener) request.
leave in interface TourneyProvidercom.threerings.presents.server.InvocationExceptionpublic void cancelTourney(String cause)
public boolean isFinished()
public boolean isPending()
public boolean isRunning()
public boolean isPaused()
public boolean shouldStart(long now)
public abstract void notifyAllParticipants(String msg)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||