We need to sort card sprites using a comparator if we want to sort them not

based on render order as we use render order. Also some widening.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@301 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Michael Bayne
2007-05-15 18:03:54 +00:00
parent 84080ecb61
commit c4fbf34f44
2 changed files with 282 additions and 308 deletions
File diff suppressed because it is too large Load Diff
@@ -203,19 +203,6 @@ public class CardSprite extends FadableImageSprite
gfx.setTransform(otrans);
}
/**
* Compares this to another card sprite based on their cards.
*/
protected int naturalCompareTo (AbstractMedia other)
{
CardSprite cs = (CardSprite)other;
if (_card == null || cs._card == null) {
return 0;
} else {
return _card.compareTo(cs._card);
}
}
/**
* Updates the mirage according to the current state.
*/