using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { public class Minion { public static int manaCost; public static int attack; public static int health; public static string cardText; public Minion(int mana, int atk, int h, string txt) { manaCost = mana; attack = atk; health = h; cardText = txt; } public void displayStats(string name) { Console.WriteLine(name + "\nMana Cost: " + manaCost + "\nAttack: " + attack + "\nHealth: " + health + "\n" + cardText + "\n"); } } class Program { static void Main(string[] args) { List indexList = new List(); Dictionary minionList = new Dictionary(); //buffer so I start at 1 and not 0 indexList.Add("MissingNo"); //make a Wolfrider card indexList.Add("Wolfrider"); Minion Wolfrider = new Minion(3, 3, 1, "Charge"); minionList.Add(indexList[1], Wolfrider); //make a Goldshire Footman card indexList.Add("Goldshire Footman"); Minion GoldshireFootman = new Minion(1, 1, 2, "Taunt"); minionList.Add(indexList[2], GoldshireFootman); //look through all my cards for (int i = 1; i < indexList.Count(); i++) minionList[indexList[i]].displayStats(indexList[i]); Console.ReadLine(); } } }