public override string ToLink(bool link = true, DwarfObject pov = null, WorldEvent worldEvent = null) { if (link) { string title = ""; if (StructureSubType != StructureSubType.Unknown) { title += StructureSubType.GetDescription(); } else { title += Type.GetDescription(); } title += "
"; title += "Events: " + Events.Count; string linkedString = ""; if (pov != this) { linkedString = Icon + "<a href = \"structure#" + GlobalId + "\" title=\"" + title + "\">" + Name + "</a>"; } else { linkedString = Icon + "<a title=\"" + title + "\">" + HtmlStyleUtil.CurrentDwarfObject(Name) + "</a>"; } return(linkedString); } return(Icon + Name); }
public override string ToLink(bool link = true, DwarfObject pov = null) { string name = "The " + GetOrdinal(Ordinal) + ConquerType + " of " + Site.ToLink(false); if (link) { string title = Type; title += "
"; if (Attacker != null) { title += Attacker.PrintEntity(false) + " (Attacker)(V)"; title += "
"; } if (Defender != null) { title += Defender.PrintEntity(false) + " (Defender)"; } string linkedString = ""; if (pov != this) { linkedString = "<a href = \"collection#" + Id + "\" title=\"" + title + "\"><font color=\"6E5007\">" + name + "</font></a>"; if (pov != Battle) { linkedString += " as a result of " + Battle.ToLink(); } } else { linkedString = Icon + "<a title=\"" + title + "\">" + HtmlStyleUtil.CurrentDwarfObject(name) + "</a>"; } return(linkedString); } return(name); }
public override string ToLink(bool link = true, DwarfObject pov = null) { if (this == Unknown) { return(Name); } if (link) { string icon = GetIcon(); if (pov == null || pov != this) { if (pov != null && pov.GetType() == typeof(BeastAttack) && (pov as BeastAttack)?.Beast == this) //Highlight Beast when printing Beast Attack Log { return(icon + "<a href=\"hf#" + Id + "\" title=\"" + Title + "\"><font color=#339900>" + ShortName + "</font></a>"); } return("the " + RaceString + " " + icon + "<a href=\"hf#" + Id + "\" title=\"" + Title + "\">" + Name + "</a>"); } return("<a href=\"hf#" + Id + "\" title=\"" + Title + "\">" + HtmlStyleUtil.CurrentDwarfObject(ShortName) + "</a>"); } if (pov == null || pov != this) { return(RaceString + " " + Name); } return(ShortName); }
public override string ToLink(bool link = true, DwarfObject pov = null) { if (link) { string title; if (IsCiv) { title = "Civilization of " + Race; } else { title = "Group of " + Race; } if (Parent != null) { title += ", of " + Parent.Name; } if (pov != this) { return(Icon + "<a href = \"entity#" + Id + "\" title=\"" + title + "\">" + Name + "</a>"); } return(Icon + "<a title=\"" + title + "\">" + HtmlStyleUtil.CurrentDwarfObject(Name) + "</a>"); } return(Name); }
public override string ToLink(bool link = true, DwarfObject pov = null) { if (link) { string type = null; if (Type != WrittenContentType.Unknown) { type = Type.GetDescription(); } string title = "Written Content"; title += string.IsNullOrWhiteSpace(type) ? "" : ", " + type; title += "
"; title += "Events: " + Events.Count; string linkedString = ""; if (pov != this) { linkedString = Icon + "<a href = \"writtencontent#" + Id + "\" title=\"" + title + "\">" + Name + "</a>"; } else { linkedString = Icon + "<a title=\"" + title + "\">" + HtmlStyleUtil.CurrentDwarfObject(Name) + "</a>"; } return(linkedString); } return(Name); }
public override string ToLink(bool link = true, DwarfObject pov = null, WorldEvent worldEvent = null) { string name; if (Type == "Cavern") { name = "the depths of the world"; } else if (Type == "Underworld") { name = "the Underworld"; } else { name = "an underground region (" + Type + ")"; } if (link) { string title = Type; title += "
"; title += "Events: " + Events.Count; if (pov != this) { return(Icon + "<a href = \"uregion#" + Id + "\" title=\"" + title + "\">" + name + "</a>"); } return(Icon + "<a title=\"" + title + "\">" + HtmlStyleUtil.CurrentDwarfObject(name) + "</a>"); } return(name); }
public override string ToLink(bool link = true, DwarfObject pov = null, WorldEvent worldEvent = null) { if (link) { string title = Type; title += "
"; title += Attacker.PrintEntity(false) + " (Attacker)"; title += "
"; title += Defender.PrintEntity(false) + " (Defender)"; title += "
"; title += "Deaths: " + DeathCount + " | (" + StartYear + " - " + (EndYear == -1 ? "Present" : EndYear.ToString()) + ")"; string linkedString = ""; if (pov != this) { linkedString = Icon + "<a href = \"collection#" + Id + "\" title=\"" + title + "\"><font color=\"#6E5007\">" + Name + "</font></a>"; } else { linkedString = Icon + "<a title=\"" + title + "\">" + HtmlStyleUtil.CurrentDwarfObject(Name) + "</a>"; } return(linkedString); } return(Name); }
public override string ToLink(bool link = true, DwarfObject pov = null, WorldEvent worldEvent = null) { if (link) { if (pov != this) { return(Icon + "<a href = \"entity#" + Id + "\" title=\"" + GetToolTip() + "\">" + Name + "</a>"); } return(Icon + "<a title=\"" + GetToolTip() + "\">" + HtmlStyleUtil.CurrentDwarfObject(Name) + "</a>"); } return(Name); }
public override string ToLink(bool link = true, DwarfObject pov = null) { if (link) { string title = "Artifact" + (!string.IsNullOrEmpty(Type) ? ", " + Type : ""); title += "
"; title += "Events: " + Events.Count; if (pov != this) { return(Icon + "<a href = \"artifact#" + Id + "\" title=\"" + title + "\">" + Name + "</a>"); } return(Icon + "<a title=\"" + title + "\">" + HtmlStyleUtil.CurrentDwarfObject(Name) + "</a>"); } return(Name); }
public override string ToLink(bool link = true, DwarfObject pov = null) { if (link) { string title = Type; title += "
"; title += "Events: " + Events.Count; if (pov != this) { return(Icon + "<a href = \"region#" + Id + "\" title=\"" + title + "\">" + Name + "</a>"); } return(Icon + "<a title=\"" + title + "\">" + HtmlStyleUtil.CurrentDwarfObject(Name) + "</a>"); } return(Name); }
public override string ToLink(bool link = true, DwarfObject pov = null) { string name = ""; name = "The " + GetOrdinal(Ordinal) + "rampage of "; if (Beast != null && pov == Beast) { name += Beast.ToLink(false, Beast); } else if (Beast != null) { name += Beast.Name; } else { name += "UNKNOWN BEAST"; } if (pov != Site) { name += " in " + Site.ToLink(false); } if (link) { string title = "Beast Attack"; title += "
"; title += "Events: " + GetSubEvents().Count; string linkedString = ""; if (pov != this) { linkedString = Icon + "<a href = \"collection#" + Id + "\" title=\"" + title + "\"><font color=\"#6E5007\">" + name + "</font></a>"; } else { linkedString = Icon + "<a title=\"" + title + "\">" + HtmlStyleUtil.CurrentDwarfObject(name) + "</a>"; } return(linkedString); } if (pov == this) { return("Rampage of " + Beast.ToLink(false, Beast)); } return(name); }
public override string ToLink(bool link = true, DwarfObject pov = null, WorldEvent worldEvent = null) { if (link) { string title = Type; title += "
"; title += Attacker != null?Attacker.PrintEntity(false) : "UNKNOWN"; title += " (Attacker)"; if (Victor == Attacker) { title += "(V)"; } title += "
"; title += "Kills: " + DefenderDeathCount; title += "
"; title += Defender != null?Defender.PrintEntity(false) : "UNKNOWN"; title += " (Defender)"; if (Victor == Defender) { title += "(V)"; } title += "
"; title += "Kills: " + AttackerDeathCount; string linkedString; if (pov != this) { linkedString = Icon + "<a href = \"collection#" + Id + "\" title=\"" + title + "\"><font color=\"#6E5007\">" + Name + "</font></a>"; } else { linkedString = Icon + "<a title=\"" + title + "\">" + HtmlStyleUtil.CurrentDwarfObject(Name) + "</a>"; } return(linkedString); } return(Name); }
public override string ToLink(bool link = true, DwarfObject pov = null, WorldEvent worldEvent = null) { if (link) { string title = Type; title += "
"; title += "Items Stolen: " + ItemsStolenCount; string linkedString = ""; if (pov != this) { linkedString = Icon + "<a href = \"collection#" + Id + "\" title=\"" + title + "\"><font color=\"#6E5007\">" + Name + "</font></a>"; } else { linkedString = Icon + "<a title=\"" + title + "\">" + HtmlStyleUtil.CurrentDwarfObject(Name) + "</a>"; } return(linkedString); } return(Name); }
public override string ToLink(bool link = true, DwarfObject pov = null) { if (link) { string linkedString = ""; if (pov != this) { string title = "Dance Form"; title += "
"; title += "Events: " + Events.Count; linkedString = Icon + "<a href=\"danceform#" + Id + "\" title=\"" + title + "\">" + Name + "</a>"; } else { linkedString = Icon + HtmlStyleUtil.CurrentDwarfObject(Name); } return(linkedString); } return(Name); }
public override string ToLink(bool link = true, DwarfObject pov = null, WorldEvent worldEvent = null) { if (link) { string linkedString = ""; if (pov != this) { string title = ""; title += IsVolcano ? "Volcano" : "Mountain Peak"; title += "
"; title += "Events: " + Events.Count; linkedString = Icon + "<a href = \"mountainpeak#" + Id + "\" title=\"" + title + "\">" + Name + "</a>"; } else { linkedString = Icon + HtmlStyleUtil.CurrentDwarfObject(Name); } return(linkedString); } return(Name); }
public override string ToLink(bool link = true, DwarfObject pov = null) { if (link) { string linkedString = ""; if (pov != this) { string title = ""; title += "World Construction"; title += Type != WorldConstructionType.Unknown ? "" : ", " + Type; title += "
"; title += "Events: " + Events.Count; linkedString = Icon + "<a href = \"worldconstruction#" + Id + "\" title=\"" + title + "\">" + Name + "</a>"; } else { linkedString = Icon + HtmlStyleUtil.CurrentDwarfObject(Name); } return(linkedString); } return(Name); }
public string ToTreeLeafLink(DwarfObject pov = null) { string dead = DeathYear != -1 ? "<br/>" + HtmlStyleUtil.SymbolDead : ""; if (pov == null || pov != this) { return("<a " + (Deity ? "class=\"hf_deity\"" : "") + " href=\"hf#" + Id + "\" title=\"" + Title + "\">" + Race + (Deity ? " Deity" : "") + "<br/>" + Name + dead + "</a>"); } return("<a " + (Deity ? "class=\"hf_deity\"" : "") + " title=\"" + Title + "\">" + Race + (Deity ? " Deity" : "") + "<br/>" + HtmlStyleUtil.CurrentDwarfObject(Name) + dead + "</a>"); }