Example #1
0
 public DailyChangeMode(IPlayerOnegaiRepository playerOnegaiRepository)
 {
     this.playerOnegaiRepository = playerOnegaiRepository;
     this.dailyEarnCalculater    = new DailyEarnCalculater(playerOnegaiRepository);
     this.satisfactionCalculater = new SatisfactionCalculater(playerOnegaiRepository);
     this.disposable             = null;
 }
Example #2
0
        /// <summary>
        /// 満足度から稼ぎを計算する
        /// </summary>
        /// <returns>稼ぎ</returns>
        public Currency CalcEarnFromSatisfaction()
        {
            var          satisfactionCalculater = new SatisfactionCalculater(playerOnegaiRepository);
            Satisfaction currentSatisfaction    = satisfactionCalculater.CalcFieldSatisfaction();
            Currency     currency = new Currency((long)(currentSatisfaction.Value * DailyEarnCalculater.SatisfactionMultiRate));

            return(currency);
        }
 public ConstantlyEventPusher(IPlayerOnegaiRepository playerOnegaiRepository)
 {
     this.playerOnegaiRepository = playerOnegaiRepository;
     this.satisfactionCalculater = new SatisfactionCalculater(playerOnegaiRepository);
     this.onegaiMediater         = new OnegaiMediater(playerOnegaiRepository);
 }
        private void Update()
        {
            SatisfactionCalculater satisfactionCalculater = new SatisfactionCalculater(playerOnegaiRepository);

            text.text = satisfactionCalculater.CalcFieldSatisfaction().ToString();
        }