Ejemplo n.º 1
0
        private string Look(IRoom room) {
            StringBuilder sb = new StringBuilder();

                //let's build the description the player will see
                room.GetRoomExits();
                var exitList = room.RoomExits;

                sb.AppendLine(("- " + room.Title + " -\t\t\t").ToUpper());
                //TODO: add a "Descriptive" flag, that we will use to determine if we need to display the room description.
                sb.AppendLine(room.Description);
                sb.Append(HintCheck(room.Id));

                foreach (IExit exit in exitList) {
                    sb.AppendLine(GetExitDescription(exit, room));
                }
                        
            return sb.ToString();

        }