Esempio n. 1
0
 public static void Resolve <T>(command cmd, List <T> list)
 {
     Log("Which do you mean: ");
     foreach (var elem in list)
     {
         Log("- " + elem, Formats.Command);
     }
     Pathways.gameState = GameStates.Term;
 }
Esempio n. 2
0
        public static void Stow(command cmd)
        {
            if (holdall.Count == 0)
            {
                Terminal.Log("You have nothing to stow!",
                             Formats.Command); return;
            }
            var temp = new List <invt::IWearable>();

            if ((new Regex(@"\b(all)\b")).IsMatch(cmd.input))
            {
                Player.Stow();
            }
            else
            {
                foreach (var item in holdall)
                {
                    if (item is invt::IWearable &&
                        item.desc.IsSynonymousWith(cmd.input))
                    {
                        temp.Add((invt::IWearable)item);
                    }
                }
            }
            if (temp.Count == 1)
            {
                Player.Stow(temp[0]);
            }
            else if (temp.Count != 0)
            {
                Terminal.Resolve(cmd, temp);
            }
            else
            {
                Terminal.Log("You don't have anything you can stow.",
                             Formats.Command);
            }
        }
Esempio n. 3
0
 public static void Read(command cmd)
 {
 }
Esempio n. 4
0
 public static void View(command cmd)
 {
     Terminal.Log(" > " + cmd.input + ": You examine the thing.",
                  Formats.Command);
 }
Esempio n. 5
0
 public static void Quit(command cmd)
 {
     Terminal.Alert("Quit Pathways into Darkness?", Formats.Alert);
 }
Esempio n. 6
0
 public static void Redo(command cmd)
 {
     intf::Parser.eval(cmd.input);
 }
Esempio n. 7
0
 public static void Sudo(command cmd)
 {
 }
Esempio n. 8
0
        }         /*(s) => (s.Length>100)?(s.Substring(0,100)+"&hellip;"):(s); */

        public static void Help(command cmd)
        {
            Terminal.Display((intf::Message)yaml.data["help"]);
        }
Esempio n. 9
0
 public static void Load(command cmd)
 {
     Terminal.Log("I/O Disabled.");
 }