Various easy changes suggested by Ray.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3220 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Andrzej Kapolka
2004-11-18 20:01:00 +00:00
parent ebe7a65305
commit 84b6bf5468
9 changed files with 87 additions and 113 deletions
@@ -1,5 +1,5 @@
//
// $Id: Card.java,v 1.7 2004/11/01 22:10:21 andrzej Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -108,8 +108,8 @@ public class Card implements DSet.Entry, Comparable, CardCodes
}
/**
* Checks whether or not this card is valid. The no-arg public constructor
* for deserialization creates an invalid card.
* Checks whether or not this card is valid. The no-arg public
* constructor for deserialization creates an invalid card.
*
* @return true if this card is valid, false if not
*/
@@ -1,5 +1,5 @@
//
// $Id: Deck.java,v 1.6 2004/11/01 22:10:21 andrzej Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -107,9 +107,9 @@ public class Deck implements CardCodes,
else {
Hand hand = new Hand();
int cardsLeft = cards.size();
for (int i=0;i<size;i++) {
hand.cards.add(cards.get(cards.size()-1));
cards.remove(cards.size()-1);
hand.cards.add(cards.remove(--cardsLeft));
}
return hand;