552 lines
27 KiB
HTML
552 lines
27 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<!--NewPage-->
|
|
<HTML>
|
|
<HEAD>
|
|
<!-- Generated by javadoc (build 1.6.0_24) on Wed Apr 06 17:00:10 PDT 2011 -->
|
|
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<TITLE>
|
|
TourneyManager (vilya 1.3 API)
|
|
</TITLE>
|
|
|
|
<META NAME="date" CONTENT="2011-04-06">
|
|
|
|
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
|
|
|
|
<SCRIPT type="text/javascript">
|
|
function windowTitle()
|
|
{
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="TourneyManager (vilya 1.3 API)";
|
|
}
|
|
}
|
|
</SCRIPT>
|
|
<NOSCRIPT>
|
|
</NOSCRIPT>
|
|
|
|
</HEAD>
|
|
|
|
<BODY BGCOLOR="white" onload="windowTitle();">
|
|
<HR>
|
|
|
|
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<A NAME="navbar_top"><!-- --></A>
|
|
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
|
<TR>
|
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
<A NAME="navbar_top_firstrow"><!-- --></A>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
|
<TR ALIGN="center" VALIGN="top">
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/TourneyManager.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
|
</TR>
|
|
</TABLE>
|
|
</TD>
|
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
</EM>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
PREV CLASS
|
|
<A HREF="../../../../../com/threerings/parlor/tourney/server/TourneyProvider.html" title="interface in com.threerings.parlor.tourney.server"><B>NEXT CLASS</B></A></FONT></TD>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../../../index.html?com/threerings/parlor/tourney/server/TourneyManager.html" target="_top"><B>FRAMES</B></A>
|
|
<A HREF="TourneyManager.html" target="_top"><B>NO FRAMES</B></A>
|
|
<SCRIPT type="text/javascript">
|
|
<!--
|
|
if(window==top) {
|
|
document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
<NOSCRIPT>
|
|
<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
|
</NOSCRIPT>
|
|
|
|
|
|
</FONT></TD>
|
|
</TR>
|
|
<TR>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="skip-navbar_top"></A>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
|
|
<HR>
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<H2>
|
|
<FONT SIZE="-1">
|
|
com.threerings.parlor.tourney.server</FONT>
|
|
<BR>
|
|
Class TourneyManager</H2>
|
|
<PRE>
|
|
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
|
|
<IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>com.threerings.parlor.tourney.server.TourneyManager</B>
|
|
</PRE>
|
|
<DL>
|
|
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../com/threerings/parlor/tourney/data/TourneyCodes.html" title="interface in com.threerings.parlor.tourney.data">TourneyCodes</A>, <A HREF="../../../../../com/threerings/parlor/tourney/server/TourneyProvider.html" title="interface in com.threerings.parlor.tourney.server">TourneyProvider</A>, com.threerings.presents.data.InvocationCodes, com.threerings.presents.server.InvocationProvider</DD>
|
|
</DL>
|
|
<HR>
|
|
<DL>
|
|
<DT><PRE>public abstract class <B>TourneyManager</B><DT>extends <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A><DT>implements <A HREF="../../../../../com/threerings/parlor/tourney/server/TourneyProvider.html" title="interface in com.threerings.parlor.tourney.server">TourneyProvider</A>, <A HREF="../../../../../com/threerings/parlor/tourney/data/TourneyCodes.html" title="interface in com.threerings.parlor.tourney.data">TourneyCodes</A></DL>
|
|
</PRE>
|
|
|
|
<P>
|
|
Controls a running tourney.
|
|
<P>
|
|
|
|
<P>
|
|
<HR>
|
|
|
|
<P>
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
|
|
|
<A NAME="field_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
<B>Field Summary</B></FONT></TH>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="fields_inherited_from_class_com.threerings.parlor.tourney.data.TourneyCodes"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
<TH ALIGN="left"><B>Fields inherited from interface com.threerings.parlor.tourney.data.<A HREF="../../../../../com/threerings/parlor/tourney/data/TourneyCodes.html" title="interface in com.threerings.parlor.tourney.data">TourneyCodes</A></B></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><A HREF="../../../../../com/threerings/parlor/tourney/data/TourneyCodes.html#ALREADY_IN_PROGRESS">ALREADY_IN_PROGRESS</A>, <A HREF="../../../../../com/threerings/parlor/tourney/data/TourneyCodes.html#ALREADY_IN_TOURNEY">ALREADY_IN_TOURNEY</A>, <A HREF="../../../../../com/threerings/parlor/tourney/data/TourneyCodes.html#CANCELLED">CANCELLED</A>, <A HREF="../../../../../com/threerings/parlor/tourney/data/TourneyCodes.html#FAILED_ENTRY_FEE">FAILED_ENTRY_FEE</A>, <A HREF="../../../../../com/threerings/parlor/tourney/data/TourneyCodes.html#HAS_PLAYERS">HAS_PLAYERS</A>, <A HREF="../../../../../com/threerings/parlor/tourney/data/TourneyCodes.html#NOT_IN_TOURNEY">NOT_IN_TOURNEY</A>, <A HREF="../../../../../com/threerings/parlor/tourney/data/TourneyCodes.html#TOO_LATE">TOO_LATE</A>, <A HREF="../../../../../com/threerings/parlor/tourney/data/TourneyCodes.html#TOO_LATE_LEAVE">TOO_LATE_LEAVE</A></CODE></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="fields_inherited_from_class_com.threerings.presents.data.InvocationCodes"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
<TH ALIGN="left"><B>Fields inherited from interface com.threerings.presents.data.InvocationCodes</B></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE>ACCESS_DENIED, E_ACCESS_DENIED, E_INTERNAL_ERROR, GLOBAL_GROUP, INTERNAL_ERROR</CODE></TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
|
|
<A NAME="constructor_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
<B>Constructor Summary</B></FONT></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/parlor/tourney/server/TourneyManager.html#TourneyManager()">TourneyManager</A></B>()</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
|
|
<A NAME="method_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
<B>Method Summary</B></FONT></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/parlor/tourney/server/TourneyManager.html#cancel(com.threerings.presents.data.ClientObject, com.threerings.presents.client.InvocationService.ConfirmListener)">cancel</A></B>(com.threerings.presents.data.ClientObject caller,
|
|
com.threerings.presents.client.InvocationService.ConfirmListener listener)</CODE>
|
|
|
|
<BR>
|
|
Handles a <A HREF="../../../../../com/threerings/parlor/tourney/client/TourneyService.html#cancel(com.threerings.presents.client.InvocationService.ConfirmListener)"><CODE>TourneyService.cancel(com.threerings.presents.client.InvocationService.ConfirmListener)</CODE></A> request.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/parlor/tourney/server/TourneyManager.html#cancelTourney(java.lang.String)">cancelTourney</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> cause)</CODE>
|
|
|
|
<BR>
|
|
Cancel the tourney, return entry fees to all participants.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/parlor/tourney/server/TourneyManager.html#init(com.threerings.parlor.tourney.data.TourneyConfig, java.lang.Comparable)">init</A></B>(<A HREF="../../../../../com/threerings/parlor/tourney/data/TourneyConfig.html" title="class in com.threerings.parlor.tourney.data">TourneyConfig</A> config,
|
|
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</A><?> key)</CODE>
|
|
|
|
<BR>
|
|
Initializes this tourney manager and prepares it for operation.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/parlor/tourney/server/TourneyManager.html#isFinished()">isFinished</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Returns true if the tourney is finished.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/parlor/tourney/server/TourneyManager.html#isPaused()">isPaused</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Returns true if the tourney is paused.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/parlor/tourney/server/TourneyManager.html#isPending()">isPending</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Returns true if the tourney is pending.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/parlor/tourney/server/TourneyManager.html#isRunning()">isRunning</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Returns true if the tourney is running.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/parlor/tourney/server/TourneyManager.html#join(com.threerings.presents.data.ClientObject, com.threerings.presents.client.InvocationService.ConfirmListener)">join</A></B>(com.threerings.presents.data.ClientObject caller,
|
|
com.threerings.presents.client.InvocationService.ConfirmListener listener)</CODE>
|
|
|
|
<BR>
|
|
Handles a <A HREF="../../../../../com/threerings/parlor/tourney/client/TourneyService.html#join(com.threerings.presents.client.InvocationService.ConfirmListener)"><CODE>TourneyService.join(com.threerings.presents.client.InvocationService.ConfirmListener)</CODE></A> request.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/parlor/tourney/server/TourneyManager.html#leave(com.threerings.presents.data.ClientObject, com.threerings.presents.client.InvocationService.ConfirmListener)">leave</A></B>(com.threerings.presents.data.ClientObject caller,
|
|
com.threerings.presents.client.InvocationService.ConfirmListener listener)</CODE>
|
|
|
|
<BR>
|
|
Handles a <A HREF="../../../../../com/threerings/parlor/tourney/client/TourneyService.html#leave(com.threerings.presents.client.InvocationService.ConfirmListener)"><CODE>TourneyService.leave(com.threerings.presents.client.InvocationService.ConfirmListener)</CODE></A> request.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>abstract void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/parlor/tourney/server/TourneyManager.html#notifyAllParticipants(java.lang.String)">notifyAllParticipants</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> msg)</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/parlor/tourney/server/TourneyManager.html#shouldStart(long)">shouldStart</A></B>(long now)</CODE>
|
|
|
|
<BR>
|
|
Returns true if it is time or past time the tourney starts.</TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<P>
|
|
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
|
|
<A NAME="constructor_detail"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
<B>Constructor Detail</B></FONT></TH>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="TourneyManager()"><!-- --></A><H3>
|
|
TourneyManager</H3>
|
|
<PRE>
|
|
public <B>TourneyManager</B>()</PRE>
|
|
<DL>
|
|
</DL>
|
|
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
|
|
<A NAME="method_detail"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
<B>Method Detail</B></FONT></TH>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="init(com.threerings.parlor.tourney.data.TourneyConfig, java.lang.Comparable)"><!-- --></A><H3>
|
|
init</H3>
|
|
<PRE>
|
|
public int <B>init</B>(<A HREF="../../../../../com/threerings/parlor/tourney/data/TourneyConfig.html" title="class in com.threerings.parlor.tourney.data">TourneyConfig</A> config,
|
|
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</A><?> key)</PRE>
|
|
<DL>
|
|
<DD>Initializes this tourney manager and prepares it for operation.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>the oid of this manager's tourney object.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="cancel(com.threerings.presents.data.ClientObject, com.threerings.presents.client.InvocationService.ConfirmListener)"><!-- --></A><H3>
|
|
cancel</H3>
|
|
<PRE>
|
|
public void <B>cancel</B>(com.threerings.presents.data.ClientObject caller,
|
|
com.threerings.presents.client.InvocationService.ConfirmListener listener)
|
|
throws com.threerings.presents.server.InvocationException</PRE>
|
|
<DL>
|
|
<DD><B>Description copied from interface: <CODE><A HREF="../../../../../com/threerings/parlor/tourney/server/TourneyProvider.html#cancel(com.threerings.presents.data.ClientObject, com.threerings.presents.client.InvocationService.ConfirmListener)">TourneyProvider</A></CODE></B></DD>
|
|
<DD>Handles a <A HREF="../../../../../com/threerings/parlor/tourney/client/TourneyService.html#cancel(com.threerings.presents.client.InvocationService.ConfirmListener)"><CODE>TourneyService.cancel(com.threerings.presents.client.InvocationService.ConfirmListener)</CODE></A> request.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/threerings/parlor/tourney/server/TourneyProvider.html#cancel(com.threerings.presents.data.ClientObject, com.threerings.presents.client.InvocationService.ConfirmListener)">cancel</A></CODE> in interface <CODE><A HREF="../../../../../com/threerings/parlor/tourney/server/TourneyProvider.html" title="interface in com.threerings.parlor.tourney.server">TourneyProvider</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>com.threerings.presents.server.InvocationException</CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="join(com.threerings.presents.data.ClientObject, com.threerings.presents.client.InvocationService.ConfirmListener)"><!-- --></A><H3>
|
|
join</H3>
|
|
<PRE>
|
|
public void <B>join</B>(com.threerings.presents.data.ClientObject caller,
|
|
com.threerings.presents.client.InvocationService.ConfirmListener listener)
|
|
throws com.threerings.presents.server.InvocationException</PRE>
|
|
<DL>
|
|
<DD><B>Description copied from interface: <CODE><A HREF="../../../../../com/threerings/parlor/tourney/server/TourneyProvider.html#join(com.threerings.presents.data.ClientObject, com.threerings.presents.client.InvocationService.ConfirmListener)">TourneyProvider</A></CODE></B></DD>
|
|
<DD>Handles a <A HREF="../../../../../com/threerings/parlor/tourney/client/TourneyService.html#join(com.threerings.presents.client.InvocationService.ConfirmListener)"><CODE>TourneyService.join(com.threerings.presents.client.InvocationService.ConfirmListener)</CODE></A> request.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/threerings/parlor/tourney/server/TourneyProvider.html#join(com.threerings.presents.data.ClientObject, com.threerings.presents.client.InvocationService.ConfirmListener)">join</A></CODE> in interface <CODE><A HREF="../../../../../com/threerings/parlor/tourney/server/TourneyProvider.html" title="interface in com.threerings.parlor.tourney.server">TourneyProvider</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>com.threerings.presents.server.InvocationException</CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="leave(com.threerings.presents.data.ClientObject, com.threerings.presents.client.InvocationService.ConfirmListener)"><!-- --></A><H3>
|
|
leave</H3>
|
|
<PRE>
|
|
public void <B>leave</B>(com.threerings.presents.data.ClientObject caller,
|
|
com.threerings.presents.client.InvocationService.ConfirmListener listener)
|
|
throws com.threerings.presents.server.InvocationException</PRE>
|
|
<DL>
|
|
<DD><B>Description copied from interface: <CODE><A HREF="../../../../../com/threerings/parlor/tourney/server/TourneyProvider.html#leave(com.threerings.presents.data.ClientObject, com.threerings.presents.client.InvocationService.ConfirmListener)">TourneyProvider</A></CODE></B></DD>
|
|
<DD>Handles a <A HREF="../../../../../com/threerings/parlor/tourney/client/TourneyService.html#leave(com.threerings.presents.client.InvocationService.ConfirmListener)"><CODE>TourneyService.leave(com.threerings.presents.client.InvocationService.ConfirmListener)</CODE></A> request.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/threerings/parlor/tourney/server/TourneyProvider.html#leave(com.threerings.presents.data.ClientObject, com.threerings.presents.client.InvocationService.ConfirmListener)">leave</A></CODE> in interface <CODE><A HREF="../../../../../com/threerings/parlor/tourney/server/TourneyProvider.html" title="interface in com.threerings.parlor.tourney.server">TourneyProvider</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>com.threerings.presents.server.InvocationException</CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="cancelTourney(java.lang.String)"><!-- --></A><H3>
|
|
cancelTourney</H3>
|
|
<PRE>
|
|
public void <B>cancelTourney</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> cause)</PRE>
|
|
<DL>
|
|
<DD>Cancel the tourney, return entry fees to all participants.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="isFinished()"><!-- --></A><H3>
|
|
isFinished</H3>
|
|
<PRE>
|
|
public boolean <B>isFinished</B>()</PRE>
|
|
<DL>
|
|
<DD>Returns true if the tourney is finished.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="isPending()"><!-- --></A><H3>
|
|
isPending</H3>
|
|
<PRE>
|
|
public boolean <B>isPending</B>()</PRE>
|
|
<DL>
|
|
<DD>Returns true if the tourney is pending.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="isRunning()"><!-- --></A><H3>
|
|
isRunning</H3>
|
|
<PRE>
|
|
public boolean <B>isRunning</B>()</PRE>
|
|
<DL>
|
|
<DD>Returns true if the tourney is running.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="isPaused()"><!-- --></A><H3>
|
|
isPaused</H3>
|
|
<PRE>
|
|
public boolean <B>isPaused</B>()</PRE>
|
|
<DL>
|
|
<DD>Returns true if the tourney is paused.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="shouldStart(long)"><!-- --></A><H3>
|
|
shouldStart</H3>
|
|
<PRE>
|
|
public boolean <B>shouldStart</B>(long now)</PRE>
|
|
<DL>
|
|
<DD>Returns true if it is time or past time the tourney starts.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="notifyAllParticipants(java.lang.String)"><!-- --></A><H3>
|
|
notifyAllParticipants</H3>
|
|
<PRE>
|
|
public abstract void <B>notifyAllParticipants</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> msg)</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<HR>
|
|
|
|
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<A NAME="navbar_bottom"><!-- --></A>
|
|
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
|
<TR>
|
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
<A NAME="navbar_bottom_firstrow"><!-- --></A>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
|
<TR ALIGN="center" VALIGN="top">
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/TourneyManager.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
|
</TR>
|
|
</TABLE>
|
|
</TD>
|
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
</EM>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
PREV CLASS
|
|
<A HREF="../../../../../com/threerings/parlor/tourney/server/TourneyProvider.html" title="interface in com.threerings.parlor.tourney.server"><B>NEXT CLASS</B></A></FONT></TD>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../../../index.html?com/threerings/parlor/tourney/server/TourneyManager.html" target="_top"><B>FRAMES</B></A>
|
|
<A HREF="TourneyManager.html" target="_top"><B>NO FRAMES</B></A>
|
|
<SCRIPT type="text/javascript">
|
|
<!--
|
|
if(window==top) {
|
|
document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
<NOSCRIPT>
|
|
<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
|
</NOSCRIPT>
|
|
|
|
|
|
</FONT></TD>
|
|
</TR>
|
|
<TR>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="skip-navbar_bottom"></A>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
|
|
<HR>
|
|
Copyright © 2011. All Rights Reserved.
|
|
</BODY>
|
|
</HTML>
|