public abstract class TourneyManager extends Object implements TourneyProvider, TourneyCodes
ALREADY_IN_PROGRESS, ALREADY_IN_TOURNEY, CANCELLED, FAILED_ENTRY_FEE, HAS_PLAYERS, NOT_IN_TOURNEY, TOO_LATE, TOO_LATE_LEAVE| Constructor and Description |
|---|
TourneyManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(com.threerings.presents.data.ClientObject caller,
com.threerings.presents.client.InvocationService.ConfirmListener listener)
|
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)
|
void |
leave(com.threerings.presents.data.ClientObject caller,
com.threerings.presents.client.InvocationService.ConfirmListener listener)
|
abstract void |
notifyAllParticipants(String msg) |
boolean |
shouldStart(long now)
Returns true if it is time or past time the tourney starts.
|
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.InvocationExceptionpublic 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.InvocationExceptionpublic 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)
Copyright © 2015. All rights reserved.