Пример #1
0
        public override string Print(bool link = true, DwarfObject pov = null)
        {
            string eventString = GetYearTime();

            eventString += Attacker?.PrintEntity(true, pov) ?? "an unknown civilization";
            eventString += " attacked ";
            if (SiteEntity != null)
            {
                eventString += SiteEntity.PrintEntity(true, pov);
            }
            else
            {
                eventString += Defender?.PrintEntity(true, pov) ?? "an unknown civilization";
            }
            eventString += " at " + Site.ToLink(link, pov, this) + ". ";
            if (AttackerGeneral != null)
            {
                eventString += "Leader of the attack was ";
                eventString += AttackerGeneral.ToLink(link, pov, this);
            }
            if (DefenderGeneral != null)
            {
                eventString += ", and the defenders were led by ";
                eventString += DefenderGeneral.ToLink(link, pov, this);
            }
            eventString += PrintParentCollection(link, pov);
            eventString += ".";
            if (AttackerMercenaries != null)
            {
                eventString += " ";
                eventString += AttackerMercenaries.ToLink(true, pov);
                eventString += " were hired by the attackers.";
            }
            if (DefenderMercenaries != null)
            {
                eventString += " ";
                eventString += DefenderMercenaries.ToLink(true, pov);
                eventString += " were hired by the defenders.";
            }
            if (AttackerSupportMercenaries != null)
            {
                eventString += " ";
                eventString += AttackerSupportMercenaries.ToLink(true, pov);
                eventString += " were hired as scouts by the attackers.";
            }
            if (DefenderSupportMercenaries != null)
            {
                eventString += " ";
                eventString += DefenderSupportMercenaries.ToLink(true, pov);
                eventString += " were hired as scouts by the defenders.";
            }
            return(eventString);
        }
Пример #2
0
        public override string Print(bool link = true, DwarfObject pov = null)
        {
            string eventString = GetYearTime();

            eventString += Attacker.ToLink(true, pov);
            eventString += " attacked ";
            eventString += Defender.ToLink(true, pov);
            eventString += " in " + Region.ToLink(link, pov, this) + ". ";
            if (AttackerGeneral != null)
            {
                eventString += "Leader of the attack was ";
                eventString += AttackerGeneral.ToLink(link, pov, this);
            }
            if (DefenderGeneral != null)
            {
                eventString += ", and the defenders were led by ";
                eventString += DefenderGeneral.ToLink(link, pov, this);
            }
            eventString += PrintParentCollection(link, pov);
            eventString += ".";
            if (AttackerMercenaries != null)
            {
                eventString += " ";
                eventString += AttackerMercenaries.ToLink(true, pov);
                eventString += " were hired by the attackers.";
            }
            if (DefenderMercenaries != null)
            {
                eventString += " ";
                eventString += DefenderMercenaries.ToLink(true, pov);
                eventString += " were hired by the defenders.";
            }
            if (AttackerSupportMercenaries != null)
            {
                eventString += " ";
                eventString += AttackerSupportMercenaries.ToLink(true, pov);
                eventString += " were hired as scouts by the attackers.";
            }
            if (DefenderSupportMercenaries != null)
            {
                eventString += " ";
                eventString += DefenderSupportMercenaries.ToLink(true, pov);
                eventString += " were hired as scouts by the defenders.";
            }
            return(eventString);
        }