Example #1
0
 public void Register(Action action)
 {
     BaseActions.Add(action);
     if (BaseActions.Count <= 2)
     {
         RegisterEvent();
     }
 }
Example #2
0
        /// <summary>
        /// Creates a new instance of the player in the given <see cref="IRoom"/> (this includes adding them to the world population)
        /// </summary>
        /// <param name="name"></param>
        /// <param name="currentLocation"></param>
        public You(string name, IRoom currentLocation) : base(name, currentLocation)
        {
            //player can coerce Npc
            BaseActions.Add(new CoerceAction(this));

            //for now lets not confuse the player by having Npc countermand their orders
            BaseActions.Add(new LeadershipAction(this));

            CanInitiateDialogue = true;
            CanInspect          = true;
        }