Added some ActionScript annotations.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@92 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
package com.threerings.parlor.card.data;
|
package com.threerings.parlor.card.data;
|
||||||
|
|
||||||
|
import com.threerings.util.ActionScript;
|
||||||
import com.threerings.util.StreamableArrayList;
|
import com.threerings.util.StreamableArrayList;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -31,6 +32,7 @@ public class Hand extends StreamableArrayList<Card>
|
|||||||
/**
|
/**
|
||||||
* Adds all of the specified cards to this hand.
|
* Adds all of the specified cards to this hand.
|
||||||
*/
|
*/
|
||||||
|
@ActionScript(name="addAllCards")
|
||||||
public void addAll (Card[] cards)
|
public void addAll (Card[] cards)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < cards.length; i++) {
|
for (int i = 0; i < cards.length; i++) {
|
||||||
@@ -41,6 +43,7 @@ public class Hand extends StreamableArrayList<Card>
|
|||||||
/**
|
/**
|
||||||
* Removes all of the specified cards from this hand.
|
* Removes all of the specified cards from this hand.
|
||||||
*/
|
*/
|
||||||
|
@ActionScript(name="removeAllCards")
|
||||||
public void removeAll (Card[] cards)
|
public void removeAll (Card[] cards)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < cards.length; i++) {
|
for (int i = 0; i < cards.length; i++) {
|
||||||
@@ -51,6 +54,7 @@ public class Hand extends StreamableArrayList<Card>
|
|||||||
/**
|
/**
|
||||||
* Checks whether this hand contains all of the specified cards.
|
* Checks whether this hand contains all of the specified cards.
|
||||||
*/
|
*/
|
||||||
|
@ActionScript(name="containsAllCards")
|
||||||
public boolean containsAll (Card[] cards)
|
public boolean containsAll (Card[] cards)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < cards.length; i++) {
|
for (int i = 0; i < cards.length; i++) {
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ import com.samskivert.util.ArrayIntSet;
|
|||||||
import com.samskivert.util.ListUtil;
|
import com.samskivert.util.ListUtil;
|
||||||
import com.samskivert.util.StringUtil;
|
import com.samskivert.util.StringUtil;
|
||||||
|
|
||||||
|
import com.threerings.util.ActionScript;
|
||||||
import com.threerings.util.Name;
|
import com.threerings.util.Name;
|
||||||
|
|
||||||
import com.threerings.presents.dobj.DSet;
|
import com.threerings.presents.dobj.DSet;
|
||||||
@@ -380,6 +381,7 @@ public class Table
|
|||||||
/**
|
/**
|
||||||
* Helper method for toString, ripe for overrideability.
|
* Helper method for toString, ripe for overrideability.
|
||||||
*/
|
*/
|
||||||
|
@ActionScript(name="toStringBuilder")
|
||||||
protected void toString (StringBuilder buf)
|
protected void toString (StringBuilder buf)
|
||||||
{
|
{
|
||||||
buf.append("tableId=").append(tableId);
|
buf.append("tableId=").append(tableId);
|
||||||
|
|||||||
Reference in New Issue
Block a user