public static void PrintCard(HS_CardInstance card) { String msg = card.Name + " - " + HS_CardTypeUtil.GetCode(card.Stats.Type) + " " + card.Stats.Cost + ""; //if (card.Stats.Type == CardType.Creature) msg += " ["; Console.WriteLine(msg); if (card.Stats.Copy != "") { Console.WriteLine("*" + card.Stats.Copy); } }
string PrintHands(HS_PlayerInstance callingPlayer) { string response = ""; foreach (HS_PlayerInstance player in game.CurrentPlayers) { response += player.Name + "[" + players.IndexOf(player) + "] " + (int)player.Life + "HP " + player.Mana + "/" + player.Crystals + " (" + player.Hand.Count + "):\n"; byte i = 0; foreach (HS_CardInstance card in player.Hand.Cards) { if (callingPlayer == player) { response += "[" + i + "] " + card.Name + " - " + HS_CardTypeUtil.GetCode(card.Stats.Type) + " " + card.Stats.Cost + "\n"; i++; } } response += "\n"; } return(response); }