Ejemplo n.º 1
0
        /// <summary>
        /// To be called once so the Progress() does the rest.
        /// </summary>
        /// <param name="anotherMarch"></param>
        public Engagement Engage(March guestMarch)
        {
            Engagement engagement = null;

            if (guestMarch is ArmyMarch)
            {
                engagement = new BattleEngagement(pack as ArmyPack, guestMarch.pack as ArmyPack);
            }

            engagements.Add(engagement);
            return(engagement);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// To be called once so the Progress() does the rest.
 /// </summary>
 public void Disengage(Engagement engagement)
 {
     engagements.Remove(engagement);
 }