/// <summary>Checks if government == CheckingCountry.government</summary>
 public Condition(Government.ReformValue government, bool showAchievedConditionDescribtion)
 {
     check2    = government.isGovernmentEqualsThat;
     this.text = "Government is " + government.ToString(); // invention.getInventedPhrase();
     this.showAchievedConditionDescribtion = showAchievedConditionDescribtion;
     //this.conditionIsFalse = conditionIsFalse;
 }
Esempio n. 2
0
 internal override int getVotingPower(Government.ReformValue reformValue)
 {
     if (canVote(reformValue))
     {
         return(1);
     }
     else
     {
         return(0);
     }
 }
Esempio n. 3
0
 internal override bool canVote(Government.ReformValue reform)
 {
     if ((reform == Government.Democracy || reform == Government.Junta) &&
         (isStateCulture() || getCountry().minorityPolicy.getValue() == MinorityPolicy.Equality))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Esempio n. 4
0
 //public override bool getSayingYes(AbstractReformValue reform)
 //{
 //    if (reform is Government.ReformValue)
 //    {
 //        if (reform == Government.Tribal)
 //        {
 //            var baseOpinion = new Procent(0f);
 //            baseOpinion.add(this.loyalty);
 //            return baseOpinion.get() > Options.votingPassBillLimit;
 //        }
 //        else if (reform == Government.Aristocracy)
 //        {
 //            var baseOpinion = new Procent(0.2f);
 //            baseOpinion.add(this.loyalty);
 //            return baseOpinion.get() > Options.votingPassBillLimit;
 //        }
 //        else if (reform == Government.Democracy)
 //        {
 //            var baseOpinion = new Procent(1f);
 //            baseOpinion.add(this.loyalty);
 //            return baseOpinion.get() > Options.votingPassBillLimit;
 //        }
 //        else if (reform == Government.Despotism)
 //        {
 //            var baseOpinion = new Procent(0.2f);
 //            baseOpinion.add(this.loyalty);
 //            return baseOpinion.get() > Options.votingPassBillLimit;
 //        }
 //        else if (reform == Government.ProletarianDictatorship)
 //        {
 //            var baseOpinion = new Procent(0.3f);
 //            baseOpinion.add(this.loyalty);
 //            return baseOpinion.get() > Options.votingPassBillLimit;
 //        }
 //        else
 //            return false;
 //    }
 //    else if (reform is TaxationForPoor.ReformValue)
 //    {
 //        TaxationForPoor.ReformValue taxReform = reform as TaxationForPoor.ReformValue;
 //        var baseOpinion = new Procent(1f);
 //        baseOpinion.set(baseOpinion.get() - taxReform.tax.get() * 2);
 //        baseOpinion.set(baseOpinion.get() + loyalty.get() - 0.5f);
 //        return baseOpinion.get() > Options.votingPassBillLimit;
 //    }
 //    else
 //        return false;
 //}
 public override bool canVote(Government.ReformValue reform)
 {
     if ((reform == Government.Democracy || reform == Government.Polis || reform == Government.WealthDemocracy) &&
         (isStateCulture() || Country.minorityPolicy.getValue() == MinorityPolicy.Equality))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Esempio n. 5
0
 internal override bool canVote(Government.ReformValue reform)
 {
     if ((reform == Government.Democracy || reform == Government.ProletarianDictatorship) && // temporally
         (isStateCulture() || Country.minorityPolicy.getValue() == MinorityPolicy.Equality)
         )
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Esempio n. 6
0
 internal override bool canVote(Government.ReformValue reform)
 {
     if ((reform == Government.Democracy || reform == Government.Polis || reform == Government.WealthDemocracy ||
          reform == Government.BourgeoisDictatorship) &&
         (isStateCulture() || GetCountry().minorityPolicy.getValue() == MinorityPolicy.Equality))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Esempio n. 7
0
 internal override int getVotingPower(Government.ReformValue reformValue)
 {
     if (canVote(reformValue))
     {
         if (reformValue == Government.WealthDemocracy)
         {
             return(Options.PopRichStrataVotePower);
         }
         else
         {
             return(1);
         }
     }
     else
     {
         return(0);
     }
 }
 /// <summary>Checks if government == CheckingCountry.government</summary>
 public Modifier(Government.ReformValue government, bool showAchievedConditionDescribtion, float value) : base(government, true)
 {
     this.value = value;
 }