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); }
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); } }