public Sabotage(List <Property> properties, World world) : base(properties, world) { foreach (Property property in properties) { switch (property.Name) { case "saboteur_hfid": SaboteurHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "target_hfid": TargetHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "site_id": Site = world.GetSite(Convert.ToInt32(property.Value)); break; } } SaboteurHf.AddEvent(this); TargetHf.AddEvent(this); Site.AddEvent(this); }
public HfInterrogated(List <Property> properties, World world) : base(properties, world) { foreach (Property property in properties) { switch (property.Name) { case "target_hfid": TargetHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "interrogator_hfid": InterrogatorHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "arresting_enid": ArrestingEntity = world.GetEntity(Convert.ToInt32(property.Value)); break; case "held_firm_in_interrogation": property.Known = true; HeldFirmInInterrogation = true; break; case "wanted_and_recognized": property.Known = true; WantedAndRecognized = true; break; } } TargetHf.AddEvent(this); if (InterrogatorHf != TargetHf) { InterrogatorHf.AddEvent(this); } ArrestingEntity.AddEvent(this); }
public HistoricalEventRelationShip(List <Property> properties, World world) : base(properties, world) { Type = "historical event relationship"; Seconds72 = -1; foreach (Property property in properties) { switch (property.Name) { case "event": Id = Convert.ToInt32(property.Value); break; case "source_hf": SourceHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "target_hf": TargetHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "year": Year = Convert.ToInt32(property.Value); break; case "relationship": RelationshipType = VagueRelationship.GetVagueRelationshipTypeByProperty(property, property.Value); break; } } SourceHf.AddEvent(this); TargetHf.AddEvent(this); }
public FailedFrameAttempt(List <Property> properties, World world) : base(properties, world) { foreach (Property property in properties) { switch (property.Name) { case "target_hfid": TargetHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "convicter_enid": ConvicterEntity = world.GetEntity(Convert.ToInt32(property.Value)); break; case "fooled_hfid": FooledHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "framer_hfid": FramerHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "plotter_hfid": PlotterHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "crime": Crime = property.Value; break; } } TargetHf.AddEvent(this); ConvicterEntity.AddEvent(this); if (FooledHf != TargetHf) { FooledHf.AddEvent(this); } if (FramerHf != FooledHf) { FramerHf.AddEvent(this); } PlotterHf.AddEvent(this); }
// Similar to hfs formed intrigue relationship public FailedIntrigueCorruption(List <Property> properties, World world) : base(properties, world) { foreach (Property property in properties) { switch (property.Name) { case "corruptor_hfid": CorruptorHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "target_hfid": TargetHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "site_id": Site = world.GetSite(Convert.ToInt32(property.Value)); break; case "subregion_id": Region = world.GetRegion(Convert.ToInt32(property.Value)); break; case "feature_layer_id": UndergroundRegion = world.GetUndergroundRegion(Convert.ToInt32(property.Value)); break; case "failed_judgment_test": property.Known = true; FailedJudgmentTest = true; break; case "action": switch (property.Value.Replace("_", " ")) { case "bribe official": Action = IntrigueAction.BribeOfficial; break; case "induce to embezzle": Action = IntrigueAction.InduceToEmbezzle; break; case "corrupt in place": Action = IntrigueAction.CorruptInPlace; break; case "bring into network": Action = IntrigueAction.BringIntoNetwork; break; default: property.Known = false; break; } break; case "method": switch (property.Value.Replace("_", " ")) { case "intimidate": Method = IntrigueMethod.Intimidate; break; case "flatter": Method = IntrigueMethod.Flatter; break; case "bribe": Method = IntrigueMethod.Bribe; break; case "precedence": Method = IntrigueMethod.Precedence; break; case "offer immortality": Method = IntrigueMethod.OfferImmortality; break; case "religious sympathy": Method = IntrigueMethod.ReligiousSympathy; break; case "blackmail over embezzlement": Method = IntrigueMethod.BlackmailOverEmbezzlement; break; case "revenge on grudge": Method = IntrigueMethod.RevengeOnGrudge; break; default: property.Known = false; break; } break; case "top_facet": TopFacet = property.Value; break; case "top_facet_rating": TopFacetRating = Convert.ToInt32(property.Value); break; case "top_facet_modifier": TopFacetModifier = Convert.ToInt32(property.Value); break; case "top_value": TopValue = property.Value; break; case "top_value_rating": TopValueRating = Convert.ToInt32(property.Value); break; case "top_value_modifier": TopValueModifier = Convert.ToInt32(property.Value); break; case "top_relationship_factor": TopRelationshipFactor = property.Value; break; case "top_relationship_rating": TopRelationshipRating = Convert.ToInt32(property.Value); break; case "top_relationship_modifier": TopRelationshipModifier = Convert.ToInt32(property.Value); break; case "ally_defense_bonus": AllyDefenseBonus = Convert.ToInt32(property.Value); break; case "coconspirator_bonus": CoConspiratorBonus = Convert.ToInt32(property.Value); break; case "lure_hfid": LureHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "corruptor_identity": CorruptorIdentityId = Convert.ToInt32(property.Value); break; case "target_identity": TargetIdentityId = Convert.ToInt32(property.Value); break; case "relevant_entity_id": RelevantEntity = world.GetEntity(Convert.ToInt32(property.Value)); break; case "relevant_position_profile_id": RelevantPositionProfileId = Convert.ToInt32(property.Value); break; case "relevant_id_for_method": RelevantIdForMethod = Convert.ToInt32(property.Value); break; } } CorruptorHf.AddEvent(this); TargetHf.AddEvent(this); Site.AddEvent(this); Region.AddEvent(this); UndergroundRegion.AddEvent(this); LureHf.AddEvent(this); }
public HfConvicted(List <Property> properties, World world) : base(properties, world) { foreach (Property property in properties) { switch (property.Name) { case "target_hfid": TargetHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "convicted_hfid": ConvictedHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "convicter_enid": ConvicterEntity = world.GetEntity(Convert.ToInt32(property.Value)); break; case "crime": Crime = property.Value; break; case "prison_months": PrisonMonth = Convert.ToInt32(property.Value); break; case "fooled_hfid": FooledHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "framer_hfid": FramerHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "death_penalty": property.Known = true; DeathPenalty = true; break; case "beating": property.Known = true; Beating = true; break; case "hammerstrokes": Hammerstrokes = Convert.ToInt32(property.Value); break; case "wrongful_conviction": property.Known = true; WrongfulConviction = true; break; case "corrupt_convicter_hfid": CorruptConvictorHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "plotter_hfid": PlotterHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "exiled": property.Known = true; Exiled = true; break; case "held_firm_in_interrogation": property.Known = true; HeldFirmInInterrogation = true; break; case "convict_is_contact": property.Known = true; ConvictIsContact = true; break; case "surveiled_convicted": property.Known = true; SurveiledConvicted = true; break; case "surveiled_coconspirator": property.Known = true; SurveiledCoConspirator = true; break; case "surveiled_contact": property.Known = true; SurveiledContact = true; break; case "surveiled_target": property.Known = true; SurveiledContact = true; break; case "confessed_after_apb_arrest_enid": ConfessedAfterApbArrestEntity = world.GetEntity(Convert.ToInt32(property.Value)); break; case "coconspirator_hfid": CoConspiratorHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "implicated_hfid": ImplicatedHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "interrogator_hfid": InterrogatorHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "contact_hfid": ContactHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; } } TargetHf.AddEvent(this); ConvictedHf.AddEvent(this); ConvicterEntity.AddEvent(this); if (FooledHf != ConvictedHf) { FooledHf.AddEvent(this); } FramerHf.AddEvent(this); CorruptConvictorHf.AddEvent(this); if (PlotterHf != CorruptConvictorHf) { PlotterHf.AddEvent(this); } if (ConvicterEntity != ConfessedAfterApbArrestEntity) { ConfessedAfterApbArrestEntity.AddEvent(this); } CoConspiratorHf.AddEvent(this); ImplicatedHf.AddEvent(this); InterrogatorHf.AddEvent(this); if (ImplicatedHf != ContactHf) { ContactHf.AddEvent(this); } }