Files
vilya/apidocs/com/threerings/parlor/card/client/CardGameController.html
T
2015-03-14 10:44:30 -07:00

552 lines
34 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_31) on Sat Mar 14 10:07:07 PDT 2015 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>CardGameController (Vilya Core 1.6 API)</title>
<meta name="date" content="2015-03-14">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="CardGameController (Vilya Core 1.6 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/CardGameController.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev&nbsp;Class</li>
<li><a href="../../../../../com/threerings/parlor/card/client/CardGameDecoder.html" title="class in com.threerings.parlor.card.client"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/threerings/parlor/card/client/CardGameController.html" target="_top">Frames</a></li>
<li><a href="CardGameController.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.classes.inherited.from.class.com.threerings.crowd.client.PlaceController">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#fields.inherited.from.class.com.samskivert.swing.Controller">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.threerings.parlor.card.client</div>
<h2 title="Class CardGameController" class="title">Class CardGameController</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li><a href="http://samskivert.github.com/samskivert/apidocs/com/samskivert/swing/Controller.html?is-external=true" title="class or interface in com.samskivert.swing">com.samskivert.swing.Controller</a></li>
<li>
<ul class="inheritance">
<li>com.threerings.crowd.client.PlaceController</li>
<li>
<ul class="inheritance">
<li><a href="../../../../../com/threerings/parlor/game/client/GameController.html" title="class in com.threerings.parlor.game.client">com.threerings.parlor.game.client.GameController</a></li>
<li>
<ul class="inheritance">
<li>com.threerings.parlor.card.client.CardGameController</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<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://docs.oracle.com/javase/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://docs.oracle.com/javase/1.5.0/docs/api/java/util/EventListener.html?is-external=true" title="class or interface in java.util">EventListener</a></dd>
</dl>
<hr>
<br>
<pre>public abstract class <span class="typeNameLabel">CardGameController</span>
extends <a href="../../../../../com/threerings/parlor/game/client/GameController.html" title="class in com.threerings.parlor.game.client">GameController</a>
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></pre>
<div class="block">A controller class for card games. Handles common functions like accepting dealt hands.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="nested.classes.inherited.from.class.com.threerings.crowd.client.PlaceController">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from class&nbsp;com.threerings.crowd.client.PlaceController</h3>
<code>com.threerings.crowd.client.PlaceController.DelegateOp</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="nested.classes.inherited.from.class.com.threerings.presents.client.InvocationReceiver">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from interface&nbsp;com.threerings.presents.client.InvocationReceiver</h3>
<code>com.threerings.presents.client.InvocationReceiver.Registration</code></li>
</ul>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.com.samskivert.swing.Controller">
<!-- -->
</a>
<h3>Fields inherited from class&nbsp;com.samskivert.swing.<a href="http://samskivert.github.com/samskivert/apidocs/com/samskivert/swing/Controller.html?is-external=true" title="class or interface in com.samskivert.swing">Controller</a></h3>
<code><a href="http://samskivert.github.com/samskivert/apidocs/com/samskivert/swing/Controller.html?is-external=true#DISPATCHER" title="class or interface in com.samskivert.swing">DISPATCHER</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.com.threerings.parlor.card.data.CardCodes">
<!-- -->
</a>
<h3>Fields inherited from interface&nbsp;com.threerings.parlor.card.data.<a href="../../../../../com/threerings/parlor/card/data/CardCodes.html" title="interface in com.threerings.parlor.card.data">CardCodes</a></h3>
<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></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.com.threerings.presents.data.InvocationCodes">
<!-- -->
</a>
<h3>Fields inherited from interface&nbsp;com.threerings.presents.data.InvocationCodes</h3>
<code>ACCESS_DENIED, E_ACCESS_DENIED, E_INTERNAL_ERROR, GLOBAL_GROUP, INTERNAL_ERROR</code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../com/threerings/parlor/card/client/CardGameController.html#CardGameController--">CardGameController</a></span>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/threerings/parlor/card/client/CardGameController.html#cardsTransferredBetweenPlayers-int-int-int-">cardsTransferredBetweenPlayers</a></span>(int&nbsp;fromidx,
int&nbsp;toidx,
int&nbsp;cards)</code>
<div class="block">Dispatched to the client when a set of cards is transferred between two other players in
the game.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/threerings/parlor/card/client/CardGameController.html#didLeavePlace-com.threerings.crowd.data.PlaceObject-">didLeavePlace</a></span>(com.threerings.crowd.data.PlaceObject&nbsp;plobj)</code>
<div class="block">Removes our listener registration from the game object and cleans house.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/threerings/parlor/card/client/CardGameController.html#receivedCardsFromPlayer-int-com.threerings.parlor.card.data.Card:A-">receivedCardsFromPlayer</a></span>(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>
<div class="block">Dispatched to the client when it has received a set of cards from another player.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/threerings/parlor/card/client/CardGameController.html#receivedHand-com.threerings.parlor.card.data.Hand-">receivedHand</a></span>(<a href="../../../../../com/threerings/parlor/card/data/Hand.html" title="class in com.threerings.parlor.card.data">Hand</a>&nbsp;hand)</code>
<div class="block">Called when the server deals the client a new hand of cards.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/threerings/parlor/card/client/CardGameController.html#receivedHand-int-com.threerings.parlor.card.data.Hand-">receivedHand</a></span>(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>
<div class="block">Called by our sender to notify us of a received hand.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/threerings/parlor/card/client/CardGameController.html#sentCardsToPlayer-int-com.threerings.parlor.card.data.Card:A-">sentCardsToPlayer</a></span>(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>
<div class="block">Dispatched to the client when the server has forced it to send a set of cards to another
player.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/threerings/parlor/card/client/CardGameController.html#turnDidChange-com.threerings.util.Name-">turnDidChange</a></span>(com.threerings.util.Name&nbsp;turnHolder)</code>
<div class="block">Called when the turn changed.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/threerings/parlor/card/client/CardGameController.html#willEnterPlace-com.threerings.crowd.data.PlaceObject-">willEnterPlace</a></span>(com.threerings.crowd.data.PlaceObject&nbsp;plobj)</code>
<div class="block">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.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.com.threerings.parlor.game.client.GameController">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;com.threerings.parlor.game.client.<a href="../../../../../com/threerings/parlor/game/client/GameController.html" title="class in com.threerings.parlor.game.client">GameController</a></h3>
<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></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.com.threerings.crowd.client.PlaceController">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;com.threerings.crowd.client.PlaceController</h3>
<code>getPlaceConfig, getPlaceView, mayLeavePlace</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.com.samskivert.swing.Controller">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;com.samskivert.swing.<a href="http://samskivert.github.com/samskivert/apidocs/com/samskivert/swing/Controller.html?is-external=true" title="class or interface in com.samskivert.swing">Controller</a></h3>
<code><a href="http://samskivert.github.com/samskivert/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.github.com/samskivert/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.github.com/samskivert/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.github.com/samskivert/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.github.com/samskivert/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.github.com/samskivert/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.github.com/samskivert/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.github.com/samskivert/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.github.com/samskivert/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.github.com/samskivert/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.github.com/samskivert/apidocs/com/samskivert/swing/Controller.html?is-external=true#wasAdded--" title="class or interface in com.samskivert.swing">wasAdded</a>, <a href="http://samskivert.github.com/samskivert/apidocs/com/samskivert/swing/Controller.html?is-external=true#wasRemoved--" title="class or interface in com.samskivert.swing">wasRemoved</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/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://docs.oracle.com/javase/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://docs.oracle.com/javase/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://docs.oracle.com/javase/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://docs.oracle.com/javase/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://docs.oracle.com/javase/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://docs.oracle.com/javase/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://docs.oracle.com/javase/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://docs.oracle.com/javase/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></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="CardGameController--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>CardGameController</h4>
<pre>public&nbsp;CardGameController()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="willEnterPlace-com.threerings.crowd.data.PlaceObject-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>willEnterPlace</h4>
<pre>public&nbsp;void&nbsp;willEnterPlace(com.threerings.crowd.data.PlaceObject&nbsp;plobj)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../com/threerings/parlor/game/client/GameController.html#willEnterPlace-com.threerings.crowd.data.PlaceObject-">GameController</a></code></span></div>
<div class="block">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.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../../../../com/threerings/parlor/game/client/GameController.html#willEnterPlace-com.threerings.crowd.data.PlaceObject-">willEnterPlace</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../com/threerings/parlor/game/client/GameController.html" title="class in com.threerings.parlor.game.client">GameController</a></code></dd>
</dl>
</li>
</ul>
<a name="didLeavePlace-com.threerings.crowd.data.PlaceObject-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>didLeavePlace</h4>
<pre>public&nbsp;void&nbsp;didLeavePlace(com.threerings.crowd.data.PlaceObject&nbsp;plobj)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../com/threerings/parlor/game/client/GameController.html#didLeavePlace-com.threerings.crowd.data.PlaceObject-">GameController</a></code></span></div>
<div class="block">Removes our listener registration from the game object and cleans house.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../../../../com/threerings/parlor/game/client/GameController.html#didLeavePlace-com.threerings.crowd.data.PlaceObject-">didLeavePlace</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../com/threerings/parlor/game/client/GameController.html" title="class in com.threerings.parlor.game.client">GameController</a></code></dd>
</dl>
</li>
</ul>
<a name="turnDidChange-com.threerings.util.Name-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>turnDidChange</h4>
<pre>public&nbsp;void&nbsp;turnDidChange(com.threerings.util.Name&nbsp;turnHolder)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../com/threerings/parlor/turn/client/TurnGameController.html#turnDidChange-com.threerings.util.Name-">TurnGameController</a></code></span></div>
<div class="block">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).</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../com/threerings/parlor/turn/client/TurnGameController.html#turnDidChange-com.threerings.util.Name-">turnDidChange</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../com/threerings/parlor/turn/client/TurnGameController.html" title="interface in com.threerings.parlor.turn.client">TurnGameController</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>turnHolder</code> - the username of the new holder of the turn.</dd>
</dl>
</li>
</ul>
<a name="receivedHand-int-com.threerings.parlor.card.data.Hand-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>receivedHand</h4>
<pre>public final&nbsp;void&nbsp;receivedHand(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>
<div class="block">Called by our sender to notify us of a received hand.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../com/threerings/parlor/card/client/CardGameReceiver.html#receivedHand-int-com.threerings.parlor.card.data.Hand-">receivedHand</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../com/threerings/parlor/card/client/CardGameReceiver.html" title="interface in com.threerings.parlor.card.client">CardGameReceiver</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>oid</code> - the oid of the game for which this hand applies</dd>
<dd><code>hand</code> - the received hand</dd>
</dl>
</li>
</ul>
<a name="receivedHand-com.threerings.parlor.card.data.Hand-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>receivedHand</h4>
<pre>public&nbsp;void&nbsp;receivedHand(<a href="../../../../../com/threerings/parlor/card/data/Hand.html" title="class in com.threerings.parlor.card.data">Hand</a>&nbsp;hand)</pre>
<div class="block">Called when the server deals the client a new hand of cards. Default implementation does
nothing.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>hand</code> - the hand dealt to the user</dd>
</dl>
</li>
</ul>
<a name="receivedCardsFromPlayer-int-com.threerings.parlor.card.data.Card:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>receivedCardsFromPlayer</h4>
<pre>public&nbsp;void&nbsp;receivedCardsFromPlayer(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>
<div class="block">Dispatched to the client when it has received a set of cards from another player. Default
implementation does nothing.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../com/threerings/parlor/card/client/CardGameReceiver.html#receivedCardsFromPlayer-int-com.threerings.parlor.card.data.Card:A-">receivedCardsFromPlayer</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../com/threerings/parlor/card/client/CardGameReceiver.html" title="interface in com.threerings.parlor.card.client">CardGameReceiver</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>plidx</code> - the index of the player providing the cards</dd>
<dd><code>cards</code> - the cards received</dd>
</dl>
</li>
</ul>
<a name="sentCardsToPlayer-int-com.threerings.parlor.card.data.Card:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sentCardsToPlayer</h4>
<pre>public&nbsp;void&nbsp;sentCardsToPlayer(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>
<div class="block">Dispatched to the client when the server has forced it to send a set of cards to another
player. Default implementation does nothing.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../com/threerings/parlor/card/client/CardGameReceiver.html#sentCardsToPlayer-int-com.threerings.parlor.card.data.Card:A-">sentCardsToPlayer</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../com/threerings/parlor/card/client/CardGameReceiver.html" title="interface in com.threerings.parlor.card.client">CardGameReceiver</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>plidx</code> - the index of the player to which the cards were sent</dd>
<dd><code>cards</code> - the cards sent</dd>
</dl>
</li>
</ul>
<a name="cardsTransferredBetweenPlayers-int-int-int-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>cardsTransferredBetweenPlayers</h4>
<pre>public&nbsp;void&nbsp;cardsTransferredBetweenPlayers(int&nbsp;fromidx,
int&nbsp;toidx,
int&nbsp;cards)</pre>
<div class="block">Dispatched to the client when a set of cards is transferred between two other players in
the game. Default implementation does nothing.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../com/threerings/parlor/card/client/CardGameReceiver.html#cardsTransferredBetweenPlayers-int-int-int-">cardsTransferredBetweenPlayers</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../com/threerings/parlor/card/client/CardGameReceiver.html" title="interface in com.threerings.parlor.card.client">CardGameReceiver</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>fromidx</code> - the index of the player sending the cards</dd>
<dd><code>toidx</code> - the index of the player receiving the cards</dd>
<dd><code>cards</code> - the number of cards transferred</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/CardGameController.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev&nbsp;Class</li>
<li><a href="../../../../../com/threerings/parlor/card/client/CardGameDecoder.html" title="class in com.threerings.parlor.card.client"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/threerings/parlor/card/client/CardGameController.html" target="_top">Frames</a></li>
<li><a href="CardGameController.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.classes.inherited.from.class.com.threerings.crowd.client.PlaceController">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#fields.inherited.from.class.com.samskivert.swing.Controller">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2015. All rights reserved.</small></p>
</body>
</html>