/// <summary> /// Check for the both high and low cards of the current hand /// </summary> private void GetHighNLowCard() { if (FirstCard.CompareTo(SecondCard) >= 0) { _highCard = FirstCard; _lowCard = SecondCard; } else { _highCard = SecondCard; _lowCard = FirstCard; } }
public override Dictionary <string, object> SaveToDict() { var dict = new Dictionary <string, object>(); dict.Add(GDMConstants.SchemaKey, "Missions"); dict.Merge(true, FirstCard.ToGDEDict(FirstCardKey)); dict.Merge(true, Fight.ToGDEDict(FightKey)); dict.Merge(true, MissionLevel.ToGDEDict(MissionLevelKey)); dict.Merge(true, MissionName.ToGDEDict(MissionNameKey)); dict.Merge(true, MissionDescription.ToGDEDict(MissionDescriptionKey)); dict.Merge(true, NextCard.ToGDEDict(NextCardKey)); dict.Merge(true, AnswerA.ToGDEDict(AnswerAKey)); dict.Merge(true, AnswerB.ToGDEDict(AnswerBKey)); dict.Merge(true, AnswerC.ToGDEDict(AnswerCKey)); dict.Merge(true, AnswerD.ToGDEDict(AnswerDKey)); return(dict); }
public string GetUserInfo() { return(string.Format("{0}^{1}^{2}^{3}^{4}^{5}", Name, Wallet, Action, Active, FirstCard?.GetCardDescription() ?? "", SecondCard?.GetCardDescription() ?? "")); }