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

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