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
        // The engagement system is where two marches or more or one spot with a march want to interact. The interaction
        // might be a battle, trade or something else.

        /// <summary>
        /// To be called once so the Progress() does the rest.
        /// </summary>
        /// <param name="anotherMarch"></param>
        /// <returns></returns>
        public abstract bool CanEngageWith(March anotherMarch);