Redundant cast removal.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@488 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -297,7 +297,7 @@ public abstract class CardPanel extends VirtualMediaPanel
|
||||
// create the sprites
|
||||
int size = hand.size();
|
||||
for (int i = 0; i < size; i++) {
|
||||
CardSprite cs = new CardSprite(this, (Card)hand.get(i));
|
||||
CardSprite cs = new CardSprite(this, hand.get(i));
|
||||
_handSprites.add(cs);
|
||||
}
|
||||
|
||||
@@ -353,7 +353,7 @@ public abstract class CardPanel extends VirtualMediaPanel
|
||||
int len = Math.min(_handSprites.size(), hand.size());
|
||||
for (int i = 0; i < len; i++) {
|
||||
CardSprite cs = _handSprites.get(i);
|
||||
cs.setCard((Card)hand.get(i));
|
||||
cs.setCard(hand.get(i));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ public class Hand extends StreamableArrayList<Card>
|
||||
{
|
||||
int len = size(), members = 0;
|
||||
for (int i = 0; i < len; i++) {
|
||||
if (((Card)get(i)).getSuit() == suit) {
|
||||
if (get(i).getSuit() == suit) {
|
||||
members++;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -333,7 +333,7 @@ public class TrickCardGameManagerDelegate extends TurnGameManagerDelegate
|
||||
// play the card by removing it from the hand and adding it
|
||||
// to the end of the cards played array
|
||||
_hands[pidx].remove(card);
|
||||
PlayerCard[] cards = (PlayerCard[])ArrayUtil.append(
|
||||
PlayerCard[] cards = ArrayUtil.append(
|
||||
_trickCardGame.getCardsPlayed(), new PlayerCard(pidx, card));
|
||||
_trickCardGame.setCardsPlayed(cards);
|
||||
|
||||
@@ -444,7 +444,7 @@ public class TrickCardGameManagerDelegate extends TurnGameManagerDelegate
|
||||
{
|
||||
ArrayList playableCards = new ArrayList();
|
||||
for (int i = 0; i < hand.size(); i++) {
|
||||
Card card = (Card)hand.get(i);
|
||||
Card card = hand.get(i);
|
||||
if (_trickCardGame.isCardPlayable(hand, card)) {
|
||||
playableCards.add(card);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user