Exemplo n.º 1
0
        public void Fight(Monster monster)
        {
            var comparison = MobElement.CompareTo(monster.MobElement);
            var powerDiff  = comparison * VIKING_ADVANTAGE_WIN;

            //if (comparison > 0)
            //{
            //	powerDiff = VIKING_ADVANTAGE_WIN;
            //}
            //else
            //{
            //	powerDiff = comparison == 0 ? VIKING_NEUTRAL_WIN : VIKING_LOSS;
            //}
            Power += powerDiff;
        }
Exemplo n.º 2
0
 public void Regulate(double timeStep)
 {
     var comparison = MobElement.CompareTo(arena.Element);
     var powerDiff  = comparison * VIKING_ARENA_POWER_CHANGE;
 }