예제 #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
파일: World.cs 프로젝트: Alex8815/TopDeck
 //interactivity
 public void ChangeLocation(Location zone)
 {
     Front.ChangeLocation(zone);
     zone.ZoneLoop();
 }
예제 #4
0
 private void ChangeZone(Location destination)
 {
     CommandOrigin.InZone = false;
     CommandOrigin.NextLocation = destination;
 }