Esempio n. 1
0
        public bool ExecuteCommand(string[] args, PlayerCharacter character)
        {
            ReadLocation loc = new ReadLocation();

            loc.ExecuteCommand(args, character);
            return(true);
        }
Esempio n. 2
0
        public bool ExecuteCommand(string[] args, PlayerCharacter character)
        {
            character.CurrentLocation = World.LocationByID(World.LOCATION_ID_HOME);
            ReadLocation readLocation = new ReadLocation();

            readLocation.ExecuteCommand(null, character);
            return(true);
        }
Esempio n. 3
0
        public bool ExecuteCommand(string[] args, PlayerCharacter character)
        {
            if (character.CurrentLocation.LocationToSouth != null)
            {
                character.CurrentLocation = character.CurrentLocation.LocationToSouth;
                ReadLocation readLocation = new ReadLocation();
                readLocation.ExecuteCommand(null, character);
                return(true);
            }

            Console.WriteLine("You cannot go that way");
            return(false);
        }