Exemplo n.º 1
0
        public IResult PerformCommand(IMobileObject performer, ICommand command)
        {
            if (command.Parameters.Count >= 1)
            {
                string param = command.Parameters[0].ParameterValue;
                if (param.Equals("Set", StringComparison.CurrentCultureIgnoreCase))
                {
                    IRecallBeacon beacon = null;
                    foreach (IItem item in performer.Room.Items)
                    {
                        beacon = item as IRecallBeacon;
                        if (beacon != null)
                        {
                            break;
                        }
                    }

                    if (beacon == null)
                    {
                        return(new Result(false, "There is no recall beacon here."));
                    }
                    else
                    {
                        performer.RecallPoint = new RoomId(performer.Room);

                        return(new Result(true, "Recall point set."));
                    }
                }
            }

            return(PerformRecall(performer));
        }
Exemplo n.º 2
0
        private IRoom GenerateRoom13()
        {
            IRoom room = OutdoorRoom();

            room.ExamineDescription = "The dome appears to 50 feet across and 30 to 40 feet across.  There are 8 pillars 5 feet in diameter made of marble holding up the dome.  Each pillar is made of either white marble or black marble in alternating fashion.  The light dancing through the dome cast interesting patterns on the white cobble stone.  Directly under the center of the dome is a large circular stone that could be used for sitting.  In the center of the stone is an inscription. \"Built 02/14/0024 by Charon\"";
            room.LookDescription    = "A giant stained glass dome stands 30 to 40 feet above you.  The light shining through the dome cast interesting patterns on the cobble stone floor causing you to admire its beauty for a moment.";
            room.ShortDescription   = "Under the stained glass dome";

            room.AddItemToRoom(Room21_Sign());
            IRecallBeacon beacon = CreateItem <IRecallBeacon>();

            room.AddItemToRoom(beacon);
            return(room);
        }