Esempio n. 1
0
 public OnTheBox(TheCloset closet) : base("the Box")
 {
     _closet      = closet;
     _unscrewVerb = new Verb("Unscrew the vent", UnscrewVerb);
     InternalVerbs.Add(new Verb("Climb down", ClimbDownVerb));
     InternalVerbs.Add(_unscrewVerb);
 }
Esempio n. 2
0
            private void BlindMethod(string s)
            {
                Game.PrintUserInterface();
                var c = new TheCloset();

                Game.Instace.OutputPane.Write("You reach up and remove your " + "blindfold".Cyan() + ". You are in " + c.Name + ".");
                InternalVerbs.Remove(_blind);
                Player.Instance.ChangeLocation(c);
            }
Esempio n. 3
0
 public Box(TheCloset parent) : base(parent, "the box", 3, 2)
 {
     _onTheBox = new OnTheBox(parent);
     InternalVerbs.Add(new Verb(new FormattedString("Climb the ", "box".Magenta()), s =>
     {
         Game.Instace.OutputPane.Write(new FormattedString("You can just barely reach a ", "ceiling vent".Magenta(), "."));
         Player.Instance.ChangeLocation(_onTheBox);
     }));
 }