public FakeClassification Classify(ClassificationContext context) { var traveling = context.SourceVillage.ArmyTraveling; return(traveling == null || ArmyIsOld(traveling, context.CurrentTime) ? FakeClassification.Unknown | FakeClassification.Definite : FakeClassification.None); }
public FakeClassification Classify(ClassificationContext context) { var village = context.SourceVillage; if (village.ArmyTraveling == null || !village.ArmyTraveling.IsRecent(context.CurrentTime)) { return(FakeClassification.None); } return(village.ArmyTraveling.IsOffensive() ? FakeClassification.Nuke | FakeClassification.Possible : FakeClassification.Fake | FakeClassification.Possible); }
public FakeClassification Classify(ClassificationContext context) { // TODO - Check that returning nuke is at least 80% of the owned // or traveling army foreach (var returning in context.ReturningToSource.Where(c => c.Army != null)) { if (returning.Army.IsOffensive()) { return(FakeClassification.Fake | FakeClassification.Definite); } } return(FakeClassification.None); }
public FakeClassification Classify(ClassificationContext context) { var village = context.SourceVillage; if (village.ArmyStationed == null && village.ArmyOwned == null) { return(FakeClassification.None); } var isDefensiveNullable = IsDefensiveVillage(context.CurrentTime, village.ArmyStationed, village.ArmyOwned); if (isDefensiveNullable == null) { return(FakeClassification.None); } return(FakeClassification.Possible | ( isDefensiveNullable.Value ? FakeClassification.Fake : FakeClassification.Nuke )); }