Пример #1
0
    private bool ValidateItem(MergerMove merger, GameState state)
    {
        Faction originalOwner = merger.Faction;
        bool    growerValid   = ValidateProvinceOwner(originalOwner, merger.GrowingProvince, state);
        bool    absorberValid = ValidateProvinceOwner(originalOwner, merger.AbsorbedProvince, state);

        return(growerValid && absorberValid);
    }
Пример #2
0
 public MergerChain(MergerMove move)
 {
     Provinces = new List <Province>()
     {
         move.GrowingProvince, move.AbsorbedProvince
     };
     SourceProvince      = Provinces.FirstOrDefault();
     EliminatedProvinces = Provinces.Skip(1).ToArray();
 }