Esempio n. 1
0
        void Visit(Monster monster)
        {
            //Player is greedy when it owns toxic potion.
            if (_toxicPotionCount > 0)
            {
                _toxicPotionCount--;
                Life += monster.Life;

                return;
            }

            FightManager.Combat(this, monster, Constants.MonsterMaxDamage,
                                Constants.MonsterReward);
        }
Esempio n. 2
0
 void Visit(BigMonster bigMonster)
 {
     FightManager.Combat(this, bigMonster, Constants.BigMonsterMaxDamage,
                         Constants.BigMonsterReward);
 }