From 8b8a8120c2b742d486007ac0246e2ee34b147452 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Thu, 5 Oct 2006 00:16:25 +0000 Subject: [PATCH] Added some ActionScript annotations. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@92 c613c5cb-e716-0410-b11b-feb51c14d237 --- src/java/com/threerings/parlor/card/data/Hand.java | 4 ++++ src/java/com/threerings/parlor/data/Table.java | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/java/com/threerings/parlor/card/data/Hand.java b/src/java/com/threerings/parlor/card/data/Hand.java index 5e2d2c13..7d5c5029 100644 --- a/src/java/com/threerings/parlor/card/data/Hand.java +++ b/src/java/com/threerings/parlor/card/data/Hand.java @@ -21,6 +21,7 @@ package com.threerings.parlor.card.data; +import com.threerings.util.ActionScript; import com.threerings.util.StreamableArrayList; /** @@ -31,6 +32,7 @@ public class Hand extends StreamableArrayList /** * Adds all of the specified cards to this hand. */ + @ActionScript(name="addAllCards") public void addAll (Card[] cards) { for (int i = 0; i < cards.length; i++) { @@ -41,6 +43,7 @@ public class Hand extends StreamableArrayList /** * Removes all of the specified cards from this hand. */ + @ActionScript(name="removeAllCards") public void removeAll (Card[] cards) { for (int i = 0; i < cards.length; i++) { @@ -51,6 +54,7 @@ public class Hand extends StreamableArrayList /** * Checks whether this hand contains all of the specified cards. */ + @ActionScript(name="containsAllCards") public boolean containsAll (Card[] cards) { for (int i = 0; i < cards.length; i++) { diff --git a/src/java/com/threerings/parlor/data/Table.java b/src/java/com/threerings/parlor/data/Table.java index c9ad5e65..ec863fee 100644 --- a/src/java/com/threerings/parlor/data/Table.java +++ b/src/java/com/threerings/parlor/data/Table.java @@ -25,6 +25,7 @@ import com.samskivert.util.ArrayIntSet; import com.samskivert.util.ListUtil; import com.samskivert.util.StringUtil; +import com.threerings.util.ActionScript; import com.threerings.util.Name; import com.threerings.presents.dobj.DSet; @@ -380,6 +381,7 @@ public class Table /** * Helper method for toString, ripe for overrideability. */ + @ActionScript(name="toStringBuilder") protected void toString (StringBuilder buf) { buf.append("tableId=").append(tableId);