Ejemplo n.º 1
0
 public DailyChangeMode(IPlayerOnegaiRepository playerOnegaiRepository)
 {
     this.playerOnegaiRepository = playerOnegaiRepository;
     this.dailyEarnCalculater    = new DailyEarnCalculater(playerOnegaiRepository);
     this.satisfactionCalculater = new SatisfactionCalculater(playerOnegaiRepository);
     this.disposable             = null;
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
 public ConstantlyEventPusher(IPlayerOnegaiRepository playerOnegaiRepository)
 {
     this.playerOnegaiRepository = playerOnegaiRepository;
     this.satisfactionCalculater = new SatisfactionCalculater(playerOnegaiRepository);
     this.onegaiMediater         = new OnegaiMediater(playerOnegaiRepository);
 }
Ejemplo n.º 4
0
        private void Update()
        {
            SatisfactionCalculater satisfactionCalculater = new SatisfactionCalculater(playerOnegaiRepository);

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