Esempio n. 1
0
 public void RegisterFootmen(string input)
 {
     foreach (string name in input.Split())
     {
         Footman footMen = new Footman(name);
         footmen.Add(footMen);
     }
 }
Esempio 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);
            }
        }