private void SeatSuit2String(Seats seat, Suits suit, StringBuilder result) { result.Append(SuitHelper.ToXML(suit) + " "); int length = 0; for (Ranks rank = Ranks.Ace; rank >= Ranks.Two; rank--) { if (this.Owns(seat, suit, rank)) { result.Append(Rank.ToXML(rank)); length++; } } for (int l = length + 1; l <= 13; l++) { result.Append(" "); } }
public void Add(VirtualRanks rank) { thisSet += Rank.ToXML((Ranks)rank); }
public bool Contains(VirtualRanks rank) { string s = Rank.ToXML((Ranks)rank); return(thisSet.IndexOf(s) >= 0); }