Exemple #1
0
 public override int getVotingPower(Government.GovernmentReformValue reformValue)
 {
     if (CanVoteWithThatGovernment(reformValue))
     {
         return(1);
     }
     else
     {
         return(0);
     }
 }
Exemple #2
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 CanVoteWithThatGovernment(Government.GovernmentReformValue reform)
 {
     if ((reform == Government.Democracy || reform == Government.Polis || reform == Government.WealthDemocracy) &&
         (isStateCulture() || Country.minorityPolicy == MinorityPolicy.Equality))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Exemple #3
0
 public override bool CanVoteWithThatGovernment(Government.GovernmentReformValue reform)
 {
     if ((reform == Government.Democracy || reform == Government.ProletarianDictatorship) && // temporally
         (isStateCulture() || Country.minorityPolicy == MinorityPolicy.Equality)
         )
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Exemple #4
0
 public override int getVotingPower(Government.GovernmentReformValue reformValue)
 {
     if (CanVoteWithThatGovernment(reformValue))
     {
         if (reformValue == Government.WealthDemocracy)
         {
             return(Options.PopRichStrataVotePower);
         }
         else
         {
             return(1);
         }
     }
     else
     {
         return(0);
     }
 }