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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user