Ejemplo n.º 1
0
 public void RegisterFootmen(string input)
 {
     foreach (string name in input.Split())
     {
         Footman footMen = new Footman(name);
         footmen.Add(footMen);
     }
 }
Ejemplo n.º 2
0
        public void Kill(string name)
        {
            Footman    footmanFound = footmen.FirstOrDefault(x => x.Name == name);
            RoyalGuard guardFound   = royalGuards.FirstOrDefault(x => x.Name == name);

            if (footmanFound != null)
            {
                footmen.Remove(footmanFound);
            }
            if (guardFound != null)
            {
                royalGuards.Remove(guardFound);
            }
        }