//type (string), name (string), power (int), secondaryParameter (floating-point number). public void AssignBender(List <string> benderArgs) { string benderType = benderArgs[0]; Bender currentbender = BenderFactory.MakeBender(benderArgs); this.nations[benderType].AddBender(currentbender); }
public void AssignBender(List <string> benderArgs) { var type = benderArgs[0]; var name = benderArgs[1]; var power = int.Parse(benderArgs[2]); var secondaryParameter = double.Parse(benderArgs[3]); var bender = BenderFactory.MakeBender(type, name, power, secondaryParameter); this.nations[type].Benders.Add(bender); }