internal override string ToTimelineString() { string timelinestring = base.ToTimelineString(); return(string.Format("{0} {1} was entombed at {2}.", timelinestring, HF.ToString(), Site.AltName)); }
public override string LegendsDescription() { string timestring = base.LegendsDescription(); return(string.Format("{0} {1} came back from the dead as a {2} in {3}.", timestring, HF.ToString(), Ghost, Site.AltName)); }
internal override string ToTimelineString() { string timelinestring = base.ToTimelineString(); return(string.Format("{0} {1} {2} {3}.", timelinestring, HF != null ? HF.ToString() : HFID.ToString(), " linked to ", HFTarget != null ? HFTarget.ToString() : HFIDTarget.ToString())); }
public override string LegendsDescription() { string timestring = base.LegendsDescription(); return(string.Format("{0} {1} {2} {3}.", timestring, HF.ToString(), "UNKNOWN", HFTarget.ToString())); }
internal override string ToTimelineString() { string timelinestring = base.ToTimelineString(); if (Site == null) { if (SlayerHF == null) { return(string.Format("{0} {1} died.", timelinestring, HF != null ? HF.ToString() : HFID.ToString())); } else { return(string.Format("{0} {1} killed by {2}.", timelinestring, HF != null ? HF.ToString() : HFID.ToString(), SlayerHF.ToString())); } } else { if (SlayerHF == null) { return(string.Format("{0} {1} died at {2}", timelinestring, HF != null ? HF.ToString() : HFID.ToString(), Site.AltName)); } else { return(string.Format("{0} {1} killed at {2} by {3}", timelinestring, HF != null ? HF.ToString() : HFID.ToString(), Site.AltName, SlayerHF.ToString())); } } }
public override string LegendsDescription() { string timestring = base.LegendsDescription(); return(string.Format("{0} {1} was entombed in {2} within {3}.", timestring, HF.ToString(), Site.AltName, "BUILDING " + BuildingID.ToString())); }
internal override string ToTimelineString() { string timelinestring = base.ToTimelineString(); return(string.Format("{0} {1} got immortality goal.", timelinestring, HF.ToString())); }
public override string LegendsDescription() { string timestring = base.LegendsDescription(); return(string.Format("{0} {1} became obsessed with {2} own mortality and sought to extend {2} life by any means.", timestring, HF.ToString(), HF.Caste.HasValue ? (HistoricalFigure.Castes[HF.Caste.Value].ToLower() == "female" ? "her" : "his") : "his")); }
public override string LegendsDescription() { string timestring = base.LegendsDescription(); return(string.Format("{0} {1} became {2} of {3}.", timestring, HF == null ? "UNKNOWN" : HF.ToString(), LinkType == null ? "UNKNOWN" : LinkType, Site.AltName)); }
internal override string ToTimelineString() { string timelinestring = base.ToTimelineString(); return(string.Format("{0} {1} masterfully improved an item for {2} at {3}.", timelinestring, HF.ToString(), Entity.ToString(), Site.AltName)); }
public override string LegendsDescription() { string timestring = base.LegendsDescription(); return(string.Format("{0} {1} constructed a masterful {2} for {3} at {4}.", timestring, HF.ToString(), "UNKNOWN", Entity.ToString(), Site.AltName)); }
internal override string ToTimelineString() { string timelinestring = base.ToTimelineString(); return(string.Format("{0} {1} constructed a masterful arch for {2} at {3}.", timelinestring, HF.ToString(), Entity.ToString(), Site.AltName)); }
protected override string LegendsDescription() { var timestring = base.LegendsDescription(); return(string.Format("{0} {1} became {2} of {3}.", timestring, HF == null ? "UNKNOWN" : HF.ToString(), LinkType ?? "UNKNOWN", Civ)); }
public override string LegendsDescription() { string timestring = base.LegendsDescription(); return(string.Format("{0} {1} {2} became {3} in {4}.", timestring, HF.Race.ToString(), HF.ToString(), "UNKNOWN", Site.AltName)); }
public override string ToString() { if (HF == null) { return(LinkType + ": " + LinkedHFID); } else { return(LinkType + ": " + HF.ToString()); } }
internal override string ToTimelineString() { var timelinestring = base.ToTimelineString(); if (Site != null) { return(string.Format("{0} {1} came back from the dead as a {2} in {3}*", timelinestring, HF != null ? HF.ToString() : HFID.ToString(), Ghost, Site.AltName)); } return(string.Format("{0} {1} came back from the dead as a {2}", timelinestring, HF != null ? HF.ToString() : HFID.ToString(), Ghost)); }
internal override string ToTimelineString() { var timelinestring = base.ToTimelineString(); if (Site != null) { return(string.Format("{0} {1} changed jobs at {2}", timelinestring, HF != null ? HF.ToString() : HFID.ToString(), Site.AltName)); } return(string.Format("{0} {1} changed jobs", timelinestring, HF != null ? HF.ToString() : HFID.ToString())); }
internal override string ToTimelineString() { string timelinestring = base.ToTimelineString(); if (Reason == "murder" && Situation == "general suspicion") return string.Format("{0} {1} aroused general suspicion in {2} after a murder.", timelinestring, HF.ToString(), Site.AltName); else if (Reason == "ageless" && Situation == "general suspicion") return string.Format("{0} {1} aroused general suspicion in {2} after appearing not to age.", timelinestring, HF.ToString(), Site.AltName); else return timelinestring; }
public override string LegendsDescription() { string timestring = base.LegendsDescription(); if (Reason == "murder" && Situation == "general suspicion") return string.Format("{0} {1} aroused general suspicion in {2} after a murder.", timestring, HF.ToString(), Site.AltName); else if (Reason == "ageless" && Situation == "general suspicion") return string.Format("{0} {1} aroused general suspicion in {2} after appearing not to age.", timestring, HF.ToString(), Site.AltName); else return timestring; }
internal override string ToTimelineString() { string timelinestring = base.ToTimelineString(); if (HF != null && LinkType != null) { return(string.Format("{0} {1} became {2} of {3}.", timelinestring, HF.ToString(), LinkType, Site.AltName)); } else { return(string.Format("{0} Added Site Link to {1}.", timelinestring, Site.AltName)); } }
private void ConfiguraSaida_Load(object sender, EventArgs e) { txtNomeSaida.Text = Nome; cboTipo.DisplayMember = "Nome"; cboTipo.ValueMember = "Tipo"; cboTipo.Items.Add(new TipoItem { Nome = "Manual", Tipo = "M" }); cboTipo.Items.Add(new TipoItem { Nome = "Agendado", Tipo = "A" }); cboTipo.Items.Add(new TipoItem { Nome = "Pulso", Tipo = "P" }); if (TS == String.Empty) { TS = "M"; } if (TS == "M") { cboTipo.SelectedIndex = 0; } else if (TS == "A") { cboTipo.SelectedIndex = 1; } else if (TS == "P") { cboTipo.SelectedIndex = 2; } gbAgendamento.Enabled = (TS == "A"); gbPulso.Enabled = (TS == "P"); txtHI.Text = HI.ToString(); txtMI.Text = MI.ToString(); txtHF.Text = HF.ToString(); txtMF.Text = MF.ToString(); txtPulso.Text = SP.ToString(); }
internal override string ToTimelineString() { var timelinestring = base.ToTimelineString(); if (!ConcluderHFID.HasValue) { return(string.Format("{0} {1} performed ritual at {2} with {3}.", timelinestring, HF != null ? HF.ToString() : "UNKNOWN", Site != null ? Site.ToString() : "UNKNOWN", Artifact != null ? Artifact.ToString() : "UNKNOWN")); } else { return(string.Format("{0} Agreement formed", timelinestring )); } }
public static void ejer5() { DateTime HI; //Hora de Inicio DateTime HF; //Hora Final double PF, VXM = 0.50; // "PF"Precio Final, "VXM" Valor por minuto Console.WriteLine("Favor colocar la hora de Inicio de la llamada"); HI = Convert.ToDateTime(Console.ReadLine()); Console.WriteLine("Coloque la hora de Finalización de la llamada"); HF = Convert.ToDateTime(Console.ReadLine()); Console.WriteLine("Este es el precio por minuto de su llamada: {0}", VXM.ToString("C2")); PF = VXM * HF.Subtract(HI).TotalMinutes; Console.WriteLine("()()()()()()()()()()()()()()()()()()()()()()()()()()"); Console.WriteLine("Hora en la que empezó la llamada fue a las : {0}", HI.ToString("HH:mm")); Console.WriteLine("Hora en la que terminó la llamada fue a las : {0}", HF.ToString("HH:mm")); Console.WriteLine("Duración de la llamada : {0} minutos", HF.Subtract(HI).TotalMinutes); Console.ForegroundColor = ConsoleColor.Cyan; Console.WriteLine("El total a pagar es de: {0}", PF.ToString("C2")); Console.ReadKey(); }
protected override string LegendsDescription() { var timestring = base.LegendsDescription(); if (!ConcluderHFID.HasValue) { return(string.Format("{0} {1} aided the {2} {3} in becoming a permanent part of the living world that great fortresses might be raised and tested in siege. " + "The ritual took place in {4} using {5}", timestring, God != null ? God.ToString() : "UNKNOWN", HF != null ? HF.Race.ToString() : "UNKNOWN", HF != null ? HF.ToString() : "UNKNOWN", Site != null ? Site.ToString() : "UNKNOWN", Artifact != null ? Artifact.ToString() : "UNKNOWN" )); } else { return(string.Format("{0} Agreement formed", timestring )); } }
public override string LegendsDescription() { string timestring = base.LegendsDescription(); switch (Causes[Cause]) { case "struck": return(string.Format("{0} the {1} {2} was struck down by \nthe {3} {4} in {5}.", timestring, HF.Race.ToString(), HF.ToString(), SlayerRace == null ? "" : SlayerRace.ToString(), SlayerHF == null ? SlayerHFID.ToString() : SlayerHF.ToString(), Site == null ? SiteID.ToString() : Site.AltName)); case "shot": return(string.Format("{0} the {1} {2} was shot and killed by \nthe {3} {4} in {5}.", timestring, HF.Race.ToString(), HF.ToString(), SlayerRace == null ? "" : SlayerRace.ToString(), SlayerHF == null ? SlayerHFID.ToString() : SlayerHF.ToString(), Site == null ? SiteID.ToString() : Site.AltName)); case "murdered": return(string.Format("{0} the {1} {2} was murdered by \nthe {3} {4} in {5}.", timestring, HF.Race.ToString(), HF.ToString(), SlayerRace == null ? "" : SlayerRace.ToString(), SlayerHF == null ? SlayerHFID.ToString() : SlayerHF.ToString(), Site == null ? SiteID.ToString() : Site.AltName)); case "old age": return(string.Format("{0} the {1} {2} died of old age.", timestring, HF.Race.ToString(), HF.ToString())); case "infection": return(string.Format("{0} the {1} {2} succumbed to infection, slain by \nthe {3} {4} in {5}.", timestring, HF.Race.ToString(), HF.ToString(), SlayerRace == null ? "" : SlayerRace.ToString(), SlayerHF == null ? SlayerHFID.ToString() : SlayerHF.ToString(), Site == null ? SiteID.ToString() : Site.AltName)); case "blood": return(string.Format("{0} the {1} {2} bled to death in {3}.", timestring, HF.Race.ToString(), HF.ToString(), Site == null ? SiteID.ToString() : Site.AltName)); case "thirst": return(string.Format("{0} the {1} {2} died of thirst in {3}.", timestring, HF.Race.ToString(), HF.ToString(), Site == null ? SiteID.ToString() : Site.AltName)); case "collapsed": return(string.Format("{0} the {1} {2} collapsed, struck down by \nthe {3} {4} in {5}.", timestring, HF.Race.ToString(), HF.ToString(), SlayerRace == null ? "" : SlayerRace.ToString(), SlayerHF == null ? SlayerHFID.ToString() : SlayerHF.ToString(), Site == null ? SiteID.ToString() : Site.AltName)); case "vanish": return(string.Format("{0} the {1} {2} vanished in {3}.", timestring, HF.Race.ToString(), HF.ToString(), Site == null ? SiteID.ToString() : Site.AltName)); case "drown": return(string.Format("{0} the {1} {2} drowned in {3}.", timestring, HF.Race.ToString(), HF.ToString(), Site == null ? SiteID.ToString() : Site.AltName)); case "crushed bridge": return(string.Format("{0} the {1} {2} was crushed by a drawbridge in {3}.", timestring, HF.Race.ToString(), HF.ToString(), Site == null ? SiteID.ToString() : Site.AltName)); case "put to rest": return(string.Format("{0} the {1} {2} was put to rest in {3}.", timestring, HF.Race.ToString(), HF.ToString(), Site == null ? SiteID.ToString() : Site.AltName)); case "quitdead": return(string.Format("{0} the {1} {2} starved to death in {3}.", timestring, HF.Race.ToString(), HF.ToString(), Site == null ? SiteID.ToString() : Site.AltName)); case "exec beheaded": return(string.Format("{0} the {1} {2} was beheaded by \nthe {3} {4} in {5}.", timestring, HF.Race.ToString(), HF.ToString(), SlayerRace == null ? "" : SlayerRace.ToString(), SlayerHF == null ? SlayerHFID.ToString() : SlayerHF.ToString(), Site == null ? SiteID.ToString() : Site.AltName)); case "exec burned alive": return(string.Format("{0} the {1} {2} burned \nthe {3} {4} alive in {5}.", timestring, HF.Race.ToString(), HF.ToString(), SlayerRace == null ? "" : SlayerRace.ToString(), SlayerHF == null ? SlayerHFID.ToString() : SlayerHF.ToString(), Site == null ? SiteID.ToString() : Site.AltName)); case "exec fed to beasts": return(string.Format("{0} the {1} {2} fed \nthe {3} {4} to beasts in {5}.", timestring, HF.Race.ToString(), HF.ToString(), SlayerRace == null ? "" : SlayerRace.ToString(), SlayerHF == null ? SlayerHFID.ToString() : SlayerHF.ToString(), Site == null ? SiteID.ToString() : Site.AltName)); case "exec hacked to pieces": return(string.Format("{0} the {1} {2} hacked \nthe {3} {4} to pieces in {5}.", timestring, HF.Race.ToString(), HF.ToString(), SlayerRace == null ? "" : SlayerRace.ToString(), SlayerHF == null ? SlayerHFID.ToString() : SlayerHF.ToString(), Site == null ? SiteID.ToString() : Site.AltName)); case "exec drowned": return(string.Format("{0} the {1} {2} drowned \nthe {3} {4} in {5}.", timestring, HF.Race.ToString(), HF.ToString(), SlayerRace == null ? "" : SlayerRace.ToString(), SlayerHF == null ? SlayerHFID.ToString() : SlayerHF.ToString(), Site == null ? SiteID.ToString() : Site.AltName)); case "exec buried alive": return(string.Format("{0} the {1} {2} buried \nthe {3} {4} alive in {5}.", timestring, HF.Race.ToString(), HF.ToString(), SlayerRace == null ? "" : SlayerRace.ToString(), SlayerHF == null ? SlayerHFID.ToString() : SlayerHF.ToString(), Site == null ? SiteID.ToString() : Site.AltName)); case "exec crucified": return(string.Format("{0} the {1} {2} was crucified by \nthe {3} {4} alive in {5}.", timestring, HF.Race.ToString(), HF.ToString(), SlayerRace == null ? "" : SlayerRace.ToString(), SlayerHF == null ? SlayerHFID.ToString() : SlayerHF.ToString(), Site == null ? SiteID.ToString() : Site.AltName)); case "air": return(string.Format("{0} the {1} {2} suffocated, slain by {3} {4} alive in {5}.", timestring, HF.Race.ToString(), HF.ToString(), SlayerRace == null ? "" : SlayerRace.ToString(), SlayerHF == null ? SlayerHFID.ToString() : SlayerHF.ToString(), Site == null ? SiteID.ToString() : Site.AltName)); case "obstacle": return(string.Format("{0} the {1} {2} died after colliding with an obstacle in {3}.", timestring, HF.Race.ToString(), HF.ToString(), Site == null ? SiteID.ToString() : Site.AltName)); case "hunger": return(string.Format("{0} the {1} {2} starved to death in {3}.", timestring, HF.Race.ToString(), HF.ToString(), Site == null ? SiteID.ToString() : Site.AltName)); case "scuttled": return(string.Format("{0} a {1} was scuttled in {3}.", timestring, HF.Race.ToString(), HF.ToString(), Site == null ? SiteID.ToString() : Site.AltName)); case "spikes": return(string.Format("{0} the {1} {2} was impaled on spikes in {3}.", timestring, HF.Race.ToString(), HF.ToString(), Site == null ? SiteID.ToString() : Site.AltName)); case "scared to death": return(string.Format("{0} the {1} {2} was scared to death by \nthe {3} {4} in {5}.", timestring, HF.Race.ToString(), HF.ToString(), SlayerRace == null ? "" : SlayerRace.ToString(), SlayerHF == null ? SlayerHFID.ToString() : SlayerHF.ToString(), Site == null ? SiteID.ToString() : Site.AltName)); case "slaughtered": return(string.Format("{0} a {1} was slaughtered in {5}.", timestring, HF.Race.ToString(), HF.ToString(), SlayerRace == null ? "" : SlayerRace.ToString(), SlayerHF == null ? SlayerHFID.ToString() : SlayerHF.ToString(), Site == null ? SiteID.ToString() : Site.AltName)); case "trap": return(string.Format("{0} the {1} {2} was killed by a trap in {3}.", timestring, HF.Race.ToString(), HF.ToString(), Site.AltName)); default: break; } return(timestring); }
public override string LegendsDescription() { string timestring = base.LegendsDescription(); switch (States[State]) { case "settled": if (Subregion != null) { return(string.Format("{0} {1} {2} {3} in {4}.", timestring, HF.Race.ToString(), HF.ToString(), States[State], Subregion.ToString())); } else if (Site != null) { return(string.Format("{0} {1} {2} {3} in {4}.", timestring, HF.Race.ToString(), HF.ToString(), States[State], Site.AltName)); } else { break; } case "wandering": if (FeatureLayerID == -1) { return(string.Format("{0} {1} began wandering the wilds.", timestring, HF.ToString())); } else { return(string.Format("{0} {1} began wandering the depths of the world.", timestring, HF.ToString())); } case "scouting": if (Site != null) { return(string.Format("{0} {1} {2} began scouting the area around {3}.", timestring, HF.Race.ToString(), HF.ToString(), Site.AltName)); } else { break; } case "thief": if (Site != null) { return(string.Format("{0} {1} {2} decided to become a thief, operating out of {3}.", timestring, HF.Race.ToString(), HF.ToString(), Site.AltName)); } else { break; } case "snatcher": if (Site != null) { return(string.Format("{0} {1} {2} decided to become a baby-snatcher, operating out of {3}.", timestring, HF.Race.ToString(), HF.ToString(), Site.AltName)); } else { break; } case "hunting": if (Subregion != null) { return(string.Format("{0} {1} {2} began hunting great beasts in {3}.", timestring, HF.Race.ToString(), HF.ToString(), Subregion.ToString())); } else { break; } case "refugee": if (Subregion != null) { return(string.Format("{0} {1} {2} fled into the {3}.", timestring, HF.Race.ToString(), HF.ToString(), Subregion.ToString())); } else { break; } default: break; } return(timestring); }
internal override string ToTimelineString() { string timelinestring = base.ToTimelineString(); if (HF == null) { return(string.Format("{0} HF Changed state - {1} in {2}.", timelinestring, HFID.ToString(), States[State])); } switch (States[State]) { case "settled": if (Subregion != null) { return(string.Format("{0} {1} {2} in {3}.", timelinestring, HF.ToString(), States[State], Subregion.ToString())); } else if (Site != null) { return(string.Format("{0} {1} {2} in {3}.", timelinestring, HF.ToString(), States[State], Site.AltName)); } else { break; } case "wandering": if (FeatureLayerID == -1) { return(string.Format("{0} {1} began wandering the wilds.", timelinestring, HF.ToString())); } else { return(string.Format("{0} {1} began wandering the depths of the world.", timelinestring, HF.ToString())); } case "scouting": if (Site != null) { return(string.Format("{0} {1} began scouting the area around {2}.", timelinestring, HF.ToString(), Site.AltName)); } else { break; } case "thief": if (Site != null) { return(string.Format("{0} {1} decided to become a thief, operating out of {2}.", timelinestring, HF.ToString(), Site.AltName)); } else { break; } case "snatcher": if (Site != null) { return(string.Format("{0} {1} decided to become a baby-snatcher, operating out of {2}.", timelinestring, HF.ToString(), Site.AltName)); } else { break; } case "hunting": if (Subregion != null) { return(string.Format("{0} {1} began hunting great beasts in {2}.", timelinestring, HF.ToString(), Subregion.ToString())); } else { break; } case "refugee": if (Subregion != null) { return(string.Format("{0} {1} fled into the {2}.", timelinestring, HF.ToString(), Subregion.ToString())); } else { break; } default: break; } return(timelinestring); }