Files
vilya/apidocs/com/threerings/parlor/card/client/CardGameController.html
T
2011-04-06 17:01:15 -07:00

552 lines
35 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:09 PDT 2011 -->
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
CardGameController (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="CardGameController (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>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/CardGameController.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
&nbsp;<A HREF="../../../../../com/threerings/parlor/card/client/CardGameDecoder.html" title="class in com.threerings.parlor.card.client"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../index.html?com/threerings/parlor/card/client/CardGameController.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="CardGameController.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<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:&nbsp;<A HREF="#nested_classes_inherited_from_class_com.threerings.crowd.client.PlaceController">NESTED</A>&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_com.samskivert.swing.Controller">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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.card.client</FONT>
<BR>
Class CardGameController</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 "><A HREF="http://samskivert.googlecode.com/svn/apidocs/com/samskivert/swing/Controller.html?is-external=true" title="class or interface in com.samskivert.swing">com.samskivert.swing.Controller</A>
<IMG SRC="../../../../../resources/inherit.gif" ALT="extended by ">com.threerings.crowd.client.PlaceController
<IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../com/threerings/parlor/game/client/GameController.html" title="class in com.threerings.parlor.game.client">com.threerings.parlor.game.client.GameController</A>
<IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>com.threerings.parlor.card.client.CardGameController</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../com/threerings/parlor/card/client/CardGameReceiver.html" title="interface in com.threerings.parlor.card.client">CardGameReceiver</A>, <A HREF="../../../../../com/threerings/parlor/card/data/CardCodes.html" title="interface in com.threerings.parlor.card.data">CardCodes</A>, <A HREF="../../../../../com/threerings/parlor/turn/client/TurnGameController.html" title="interface in com.threerings.parlor.turn.client">TurnGameController</A>, com.threerings.presents.client.InvocationReceiver, com.threerings.presents.data.InvocationCodes, com.threerings.presents.dobj.AttributeChangeListener, com.threerings.presents.dobj.ChangeListener, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/ActionListener.html?is-external=true" title="class or interface in java.awt.event">ActionListener</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/EventListener.html?is-external=true" title="class or interface in java.util">EventListener</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public abstract class <B>CardGameController</B><DT>extends <A HREF="../../../../../com/threerings/parlor/game/client/GameController.html" title="class in com.threerings.parlor.game.client">GameController</A><DT>implements <A HREF="../../../../../com/threerings/parlor/turn/client/TurnGameController.html" title="interface in com.threerings.parlor.turn.client">TurnGameController</A>, <A HREF="../../../../../com/threerings/parlor/card/data/CardCodes.html" title="interface in com.threerings.parlor.card.data">CardCodes</A>, <A HREF="../../../../../com/threerings/parlor/card/client/CardGameReceiver.html" title="interface in com.threerings.parlor.card.client">CardGameReceiver</A></DL>
</PRE>
<P>
A controller class for card games. Handles common functions like accepting dealt hands.
<P>
<P>
<HR>
<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->
<A NAME="nested_class_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>Nested Class Summary</B></FONT></TH>
</TR>
</TABLE>
&nbsp;<A NAME="nested_classes_inherited_from_class_com.threerings.crowd.client.PlaceController"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Nested classes/interfaces inherited from class com.threerings.crowd.client.PlaceController</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>com.threerings.crowd.client.PlaceController.DelegateOp</CODE></TD>
</TR>
</TABLE>
&nbsp;
<A NAME="nested_classes_inherited_from_class_com.threerings.presents.client.InvocationReceiver"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Nested classes/interfaces inherited from interface com.threerings.presents.client.InvocationReceiver</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>com.threerings.presents.client.InvocationReceiver.Registration</CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- =========== 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>
&nbsp;<A NAME="fields_inherited_from_class_com.samskivert.swing.Controller"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Fields inherited from class com.samskivert.swing.<A HREF="http://samskivert.googlecode.com/svn/apidocs/com/samskivert/swing/Controller.html?is-external=true" title="class or interface in com.samskivert.swing">Controller</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="http://samskivert.googlecode.com/svn/apidocs/com/samskivert/swing/Controller.html?is-external=true#DISPATCHER" title="class or interface in com.samskivert.swing">DISPATCHER</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="fields_inherited_from_class_com.threerings.parlor.card.data.CardCodes"><!-- --></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.card.data.<A HREF="../../../../../com/threerings/parlor/card/data/CardCodes.html" title="interface in com.threerings.parlor.card.data">CardCodes</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../../com/threerings/parlor/card/data/CardCodes.html#ACE">ACE</A>, <A HREF="../../../../../com/threerings/parlor/card/data/CardCodes.html#BLACK_JOKER">BLACK_JOKER</A>, <A HREF="../../../../../com/threerings/parlor/card/data/CardCodes.html#CLUBS">CLUBS</A>, <A HREF="../../../../../com/threerings/parlor/card/data/CardCodes.html#DIAMONDS">DIAMONDS</A>, <A HREF="../../../../../com/threerings/parlor/card/data/CardCodes.html#HEARTS">HEARTS</A>, <A HREF="../../../../../com/threerings/parlor/card/data/CardCodes.html#JACK">JACK</A>, <A HREF="../../../../../com/threerings/parlor/card/data/CardCodes.html#KING">KING</A>, <A HREF="../../../../../com/threerings/parlor/card/data/CardCodes.html#QUEEN">QUEEN</A>, <A HREF="../../../../../com/threerings/parlor/card/data/CardCodes.html#RED_JOKER">RED_JOKER</A>, <A HREF="../../../../../com/threerings/parlor/card/data/CardCodes.html#SPADES">SPADES</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<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>
&nbsp;
<!-- ======== 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/card/client/CardGameController.html#CardGameController()">CardGameController</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== 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>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/threerings/parlor/card/client/CardGameController.html#cardsTransferredBetweenPlayers(int, int, int)">cardsTransferredBetweenPlayers</A></B>(int&nbsp;fromidx,
int&nbsp;toidx,
int&nbsp;cards)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dispatched to the client when a set of cards is transferred between two other players in
the game.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/threerings/parlor/card/client/CardGameController.html#didLeavePlace(com.threerings.crowd.data.PlaceObject)">didLeavePlace</A></B>(com.threerings.crowd.data.PlaceObject&nbsp;plobj)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes our listener registration from the game object and cleans house.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/threerings/parlor/card/client/CardGameController.html#receivedCardsFromPlayer(int, com.threerings.parlor.card.data.Card[])">receivedCardsFromPlayer</A></B>(int&nbsp;plidx,
<A HREF="../../../../../com/threerings/parlor/card/data/Card.html" title="class in com.threerings.parlor.card.data">Card</A>[]&nbsp;cards)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dispatched to the client when it has received a set of cards from another player.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/threerings/parlor/card/client/CardGameController.html#receivedHand(com.threerings.parlor.card.data.Hand)">receivedHand</A></B>(<A HREF="../../../../../com/threerings/parlor/card/data/Hand.html" title="class in com.threerings.parlor.card.data">Hand</A>&nbsp;hand)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when the server deals the client a new hand of cards.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/threerings/parlor/card/client/CardGameController.html#receivedHand(int, com.threerings.parlor.card.data.Hand)">receivedHand</A></B>(int&nbsp;oid,
<A HREF="../../../../../com/threerings/parlor/card/data/Hand.html" title="class in com.threerings.parlor.card.data">Hand</A>&nbsp;hand)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called by our sender to notify us of a received hand.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/threerings/parlor/card/client/CardGameController.html#sentCardsToPlayer(int, com.threerings.parlor.card.data.Card[])">sentCardsToPlayer</A></B>(int&nbsp;plidx,
<A HREF="../../../../../com/threerings/parlor/card/data/Card.html" title="class in com.threerings.parlor.card.data">Card</A>[]&nbsp;cards)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dispatched to the client when the server has forced it to send a set of cards to another
player.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/threerings/parlor/card/client/CardGameController.html#turnDidChange(com.threerings.util.Name)">turnDidChange</A></B>(com.threerings.util.Name&nbsp;turnHolder)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when the turn changed.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/threerings/parlor/card/client/CardGameController.html#willEnterPlace(com.threerings.crowd.data.PlaceObject)">willEnterPlace</A></B>(com.threerings.crowd.data.PlaceObject&nbsp;plobj)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds this controller as a listener to the game object (thus derived classes need not do so)
and lets the game manager know that we are now ready to go.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.threerings.parlor.game.client.GameController"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.threerings.parlor.game.client.<A HREF="../../../../../com/threerings/parlor/game/client/GameController.html" title="class in com.threerings.parlor.game.client">GameController</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../../com/threerings/parlor/game/client/GameController.html#attributeChanged(com.threerings.presents.dobj.AttributeChangedEvent)">attributeChanged</A>, <A HREF="../../../../../com/threerings/parlor/game/client/GameController.html#getMatchType()">getMatchType</A>, <A HREF="../../../../../com/threerings/parlor/game/client/GameController.html#getSessionId()">getSessionId</A>, <A HREF="../../../../../com/threerings/parlor/game/client/GameController.html#handleAction(java.awt.event.ActionEvent)">handleAction</A>, <A HREF="../../../../../com/threerings/parlor/game/client/GameController.html#init(com.threerings.crowd.util.CrowdContext, com.threerings.crowd.data.PlaceConfig)">init</A>, <A HREF="../../../../../com/threerings/parlor/game/client/GameController.html#isGameOver()">isGameOver</A>, <A HREF="../../../../../com/threerings/parlor/game/client/GameController.html#resetGame()">resetGame</A>, <A HREF="../../../../../com/threerings/parlor/game/client/GameController.html#setGameOver(boolean)">setGameOver</A>, <A HREF="../../../../../com/threerings/parlor/game/client/GameController.html#systemMessage(java.lang.String, java.lang.String)">systemMessage</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.threerings.crowd.client.PlaceController"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.threerings.crowd.client.PlaceController</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>getPlaceConfig, getPlaceView, mayLeavePlace</CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.samskivert.swing.Controller"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.samskivert.swing.<A HREF="http://samskivert.googlecode.com/svn/apidocs/com/samskivert/swing/Controller.html?is-external=true" title="class or interface in com.samskivert.swing">Controller</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="http://samskivert.googlecode.com/svn/apidocs/com/samskivert/swing/Controller.html?is-external=true#actionPerformed(java.awt.event.ActionEvent)" title="class or interface in com.samskivert.swing">actionPerformed</A>, <A HREF="http://samskivert.googlecode.com/svn/apidocs/com/samskivert/swing/Controller.html?is-external=true#configureAction(javax.swing.AbstractButton, java.lang.String)" title="class or interface in com.samskivert.swing">configureAction</A>, <A HREF="http://samskivert.googlecode.com/svn/apidocs/com/samskivert/swing/Controller.html?is-external=true#createActionButton(java.lang.String, java.lang.String)" title="class or interface in com.samskivert.swing">createActionButton</A>, <A HREF="http://samskivert.googlecode.com/svn/apidocs/com/samskivert/swing/Controller.html?is-external=true#handleAction(java.awt.Component, java.lang.String)" title="class or interface in com.samskivert.swing">handleAction</A>, <A HREF="http://samskivert.googlecode.com/svn/apidocs/com/samskivert/swing/Controller.html?is-external=true#handleAction(java.awt.Component, java.lang.String, java.lang.Object)" title="class or interface in com.samskivert.swing">handleAction</A>, <A HREF="http://samskivert.googlecode.com/svn/apidocs/com/samskivert/swing/Controller.html?is-external=true#handleAction(java.lang.Object, java.lang.String, java.lang.Object)" title="class or interface in com.samskivert.swing">handleAction</A>, <A HREF="http://samskivert.googlecode.com/svn/apidocs/com/samskivert/swing/Controller.html?is-external=true#postAction(java.awt.event.ActionEvent)" title="class or interface in com.samskivert.swing">postAction</A>, <A HREF="http://samskivert.googlecode.com/svn/apidocs/com/samskivert/swing/Controller.html?is-external=true#postAction(java.awt.Component, java.lang.String)" title="class or interface in com.samskivert.swing">postAction</A>, <A HREF="http://samskivert.googlecode.com/svn/apidocs/com/samskivert/swing/Controller.html?is-external=true#postAction(java.awt.Component, java.lang.String, java.lang.Object)" title="class or interface in com.samskivert.swing">postAction</A>, <A HREF="http://samskivert.googlecode.com/svn/apidocs/com/samskivert/swing/Controller.html?is-external=true#setControlledPanel(javax.swing.JComponent)" title="class or interface in com.samskivert.swing">setControlledPanel</A>, <A HREF="http://samskivert.googlecode.com/svn/apidocs/com/samskivert/swing/Controller.html?is-external=true#wasAdded()" title="class or interface in com.samskivert.swing">wasAdded</A>, <A HREF="http://samskivert.googlecode.com/svn/apidocs/com/samskivert/swing/Controller.html?is-external=true#wasRemoved()" title="class or interface in com.samskivert.swing">wasRemoved</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<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>
&nbsp;
<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="CardGameController()"><!-- --></A><H3>
CardGameController</H3>
<PRE>
public <B>CardGameController</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="willEnterPlace(com.threerings.crowd.data.PlaceObject)"><!-- --></A><H3>
willEnterPlace</H3>
<PRE>
public void <B>willEnterPlace</B>(com.threerings.crowd.data.PlaceObject&nbsp;plobj)</PRE>
<DL>
<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/threerings/parlor/game/client/GameController.html#willEnterPlace(com.threerings.crowd.data.PlaceObject)">GameController</A></CODE></B></DD>
<DD>Adds this controller as a listener to the game object (thus derived classes need not do so)
and lets the game manager know that we are now ready to go.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/threerings/parlor/game/client/GameController.html#willEnterPlace(com.threerings.crowd.data.PlaceObject)">willEnterPlace</A></CODE> in class <CODE><A HREF="../../../../../com/threerings/parlor/game/client/GameController.html" title="class in com.threerings.parlor.game.client">GameController</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="didLeavePlace(com.threerings.crowd.data.PlaceObject)"><!-- --></A><H3>
didLeavePlace</H3>
<PRE>
public void <B>didLeavePlace</B>(com.threerings.crowd.data.PlaceObject&nbsp;plobj)</PRE>
<DL>
<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/threerings/parlor/game/client/GameController.html#didLeavePlace(com.threerings.crowd.data.PlaceObject)">GameController</A></CODE></B></DD>
<DD>Removes our listener registration from the game object and cleans house.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/threerings/parlor/game/client/GameController.html#didLeavePlace(com.threerings.crowd.data.PlaceObject)">didLeavePlace</A></CODE> in class <CODE><A HREF="../../../../../com/threerings/parlor/game/client/GameController.html" title="class in com.threerings.parlor.game.client">GameController</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="turnDidChange(com.threerings.util.Name)"><!-- --></A><H3>
turnDidChange</H3>
<PRE>
public void <B>turnDidChange</B>(com.threerings.util.Name&nbsp;turnHolder)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../../../com/threerings/parlor/turn/client/TurnGameController.html#turnDidChange(com.threerings.util.Name)">TurnGameController</A></CODE></B></DD>
<DD>Called when the turn changed. This indicates the start of a turn
and the user interface should adjust itself accordingly (activating
controls if it is our turn and deactivating them if it is not).
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/threerings/parlor/turn/client/TurnGameController.html#turnDidChange(com.threerings.util.Name)">turnDidChange</A></CODE> in interface <CODE><A HREF="../../../../../com/threerings/parlor/turn/client/TurnGameController.html" title="interface in com.threerings.parlor.turn.client">TurnGameController</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>turnHolder</CODE> - the username of the new holder of the turn.</DL>
</DD>
</DL>
<HR>
<A NAME="receivedHand(int, com.threerings.parlor.card.data.Hand)"><!-- --></A><H3>
receivedHand</H3>
<PRE>
public final void <B>receivedHand</B>(int&nbsp;oid,
<A HREF="../../../../../com/threerings/parlor/card/data/Hand.html" title="class in com.threerings.parlor.card.data">Hand</A>&nbsp;hand)</PRE>
<DL>
<DD>Called by our sender to notify us of a received hand.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/threerings/parlor/card/client/CardGameReceiver.html#receivedHand(int, com.threerings.parlor.card.data.Hand)">receivedHand</A></CODE> in interface <CODE><A HREF="../../../../../com/threerings/parlor/card/client/CardGameReceiver.html" title="interface in com.threerings.parlor.card.client">CardGameReceiver</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>oid</CODE> - the oid of the game for which this hand applies<DD><CODE>hand</CODE> - the received hand</DL>
</DD>
</DL>
<HR>
<A NAME="receivedHand(com.threerings.parlor.card.data.Hand)"><!-- --></A><H3>
receivedHand</H3>
<PRE>
public void <B>receivedHand</B>(<A HREF="../../../../../com/threerings/parlor/card/data/Hand.html" title="class in com.threerings.parlor.card.data">Hand</A>&nbsp;hand)</PRE>
<DL>
<DD>Called when the server deals the client a new hand of cards. Default implementation does
nothing.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>hand</CODE> - the hand dealt to the user</DL>
</DD>
</DL>
<HR>
<A NAME="receivedCardsFromPlayer(int, com.threerings.parlor.card.data.Card[])"><!-- --></A><H3>
receivedCardsFromPlayer</H3>
<PRE>
public void <B>receivedCardsFromPlayer</B>(int&nbsp;plidx,
<A HREF="../../../../../com/threerings/parlor/card/data/Card.html" title="class in com.threerings.parlor.card.data">Card</A>[]&nbsp;cards)</PRE>
<DL>
<DD>Dispatched to the client when it has received a set of cards from another player. Default
implementation does nothing.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/threerings/parlor/card/client/CardGameReceiver.html#receivedCardsFromPlayer(int, com.threerings.parlor.card.data.Card[])">receivedCardsFromPlayer</A></CODE> in interface <CODE><A HREF="../../../../../com/threerings/parlor/card/client/CardGameReceiver.html" title="interface in com.threerings.parlor.card.client">CardGameReceiver</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>plidx</CODE> - the index of the player providing the cards<DD><CODE>cards</CODE> - the cards received</DL>
</DD>
</DL>
<HR>
<A NAME="sentCardsToPlayer(int, com.threerings.parlor.card.data.Card[])"><!-- --></A><H3>
sentCardsToPlayer</H3>
<PRE>
public void <B>sentCardsToPlayer</B>(int&nbsp;plidx,
<A HREF="../../../../../com/threerings/parlor/card/data/Card.html" title="class in com.threerings.parlor.card.data">Card</A>[]&nbsp;cards)</PRE>
<DL>
<DD>Dispatched to the client when the server has forced it to send a set of cards to another
player. Default implementation does nothing.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/threerings/parlor/card/client/CardGameReceiver.html#sentCardsToPlayer(int, com.threerings.parlor.card.data.Card[])">sentCardsToPlayer</A></CODE> in interface <CODE><A HREF="../../../../../com/threerings/parlor/card/client/CardGameReceiver.html" title="interface in com.threerings.parlor.card.client">CardGameReceiver</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>plidx</CODE> - the index of the player to which the cards were sent<DD><CODE>cards</CODE> - the cards sent</DL>
</DD>
</DL>
<HR>
<A NAME="cardsTransferredBetweenPlayers(int, int, int)"><!-- --></A><H3>
cardsTransferredBetweenPlayers</H3>
<PRE>
public void <B>cardsTransferredBetweenPlayers</B>(int&nbsp;fromidx,
int&nbsp;toidx,
int&nbsp;cards)</PRE>
<DL>
<DD>Dispatched to the client when a set of cards is transferred between two other players in
the game. Default implementation does nothing.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/threerings/parlor/card/client/CardGameReceiver.html#cardsTransferredBetweenPlayers(int, int, int)">cardsTransferredBetweenPlayers</A></CODE> in interface <CODE><A HREF="../../../../../com/threerings/parlor/card/client/CardGameReceiver.html" title="interface in com.threerings.parlor.card.client">CardGameReceiver</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>fromidx</CODE> - the index of the player sending the cards<DD><CODE>toidx</CODE> - the index of the player receiving the cards<DD><CODE>cards</CODE> - the number of cards transferred</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>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/CardGameController.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
&nbsp;<A HREF="../../../../../com/threerings/parlor/card/client/CardGameDecoder.html" title="class in com.threerings.parlor.card.client"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../index.html?com/threerings/parlor/card/client/CardGameController.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="CardGameController.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<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:&nbsp;<A HREF="#nested_classes_inherited_from_class_com.threerings.crowd.client.PlaceController">NESTED</A>&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_com.samskivert.swing.Controller">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
Copyright &#169; 2011. All Rights Reserved.
</BODY>
</HTML>