Added getCards() convenience method.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3813 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-01-19 21:50:53 +00:00
parent 94ee4c7e9f
commit 96f017fc3e
@@ -77,4 +77,14 @@ public class Hand extends StreamableArrayList
}
return members;
}
/**
* Get an array of the cards in this hand.
*/
public Card[] getCards ()
{
Card[] cards = new Card[size()];
toArray(cards);
return cards;
}
}