Пример #1
0
        public void ChangeLocation(Location zone)
        {
            GreetingText = zone.GreetingText;
            HelpText = zone.HelpText;

            Output(GreetingText);
        }
Пример #2
0
        public void DecipherAction(string command, Location commandOrigin)
        {
            CommandOrigin = commandOrigin;
            List<string> items = command.ToLower().Split(' ').ToList();

            string[] commandKeywords = items.ToArray();

            //accessible everywhere
            Commands(commandKeywords);
        }
Пример #3
0
 //interactivity
 public void ChangeLocation(Location zone)
 {
     Front.ChangeLocation(zone);
     zone.ZoneLoop();
 }
Пример #4
0
 private void ChangeZone(Location destination)
 {
     CommandOrigin.InZone = false;
     CommandOrigin.NextLocation = destination;
 }