Ejemplo n.º 1
0
        /// <summary>
        /// generate the text for an engage mission detail
        /// </summary>
        /// <param name="mission">the mission</param>
        /// <returns>mission detail text</returns>
        private string GenerateMissionEngageDetail(MissionEngage mission)
        {
            StringBuilder sb = new StringBuilder();

            sb.Clear();

            sb.AppendLine("All Required NPCs");
            foreach (var location in mission.RequiredNpcs)
            {
                sb.AppendLine(TAB + location.Name);
            }

            if (mission.Status == Mission.MissionStatus.Incomplete)
            {
                sb.AppendLine("NPCs Yet to Engage");
                foreach (var location in mission.NpcsNotCompleted(_player.NpcsEngaged))
                {
                    sb.AppendLine(TAB + location.Name);
                }
            }

            sb.Remove(sb.Length - 2, 2); // remove the last two characters that generate a blank line

            return(sb.ToString());;
        }
Ejemplo n.º 2
0
        private string GenerateMissionEngageDetail(MissionEngage mission)
        {
            StringBuilder sb = new StringBuilder();

            sb.Clear();

            sb.AppendLine("All Required People or Creatures");
            foreach (var location in mission.RequiredNpcs)
            {
                sb.AppendLine(TAB + location.Name);
            }

            if (mission.Status == Mission.MissionStatus.Incomplete)
            {
                sb.AppendLine("Meet these now");
                foreach (var location in mission.NpcsNotCompleted(Player.NpcsEngaged))
                {
                    sb.AppendLine(TAB + location.Name);
                }
            }
            sb.Remove(sb.Length - 2, 2);
            return(sb.ToString());
        }