static void Main(string[] args) { List <Effect> mapeffects = new List <Effect>(); mapeffects.Add(new Effect()); Unit tom = UnitFactory.MakePalyer(PlayerType.Standard); Unit jack = UnitFactory.MakePalyer(PlayerType.Standard); tom.Name = "Tom"; // tom.Equip(new Sword(), 0); tom.MaxHP = 200; tom.HP = 200; tom.Strength = 0; tom.HitRate = 1.00; tom.Effects.Add(new HPRecover(tom, tom)); tom.Effects.Add(new AttackHPIncrease(tom, tom)); tom.Equip(new BlookSword(tom), 0); jack.Name = "Jack"; jack.MaxHP = 1000; jack.HP = 1000; tom.Strength = 50; jack.ParryRate = 0; jack.HitRate = 1; int round = 1; while (tom.HP != 0 && jack.HP != 0) { Console.WriteLine(" ------------------- Round {0} ------------------- ", round++); Show(tom, jack); tom.Attack(jack).Show(); jack.Attack(tom).Show(); tom.UpdateEffects(); jack.UpdateEffects(); Show(tom, jack); } }