示例#1
0
 public Tank(TanksName tanksName, int ammunitionLevel, int armorLevel, int maneuverabilityLevel)
 {
     TankName              = tanksName;
     _ammunitionLevel      = ammunitionLevel;
     _armorLevel           = armorLevel;
     _maneuverabilityLevel = maneuverabilityLevel;
 }
示例#2
0
        public Tank(TanksName tanksName)
        {
            Random randNumber = new Random();

            TankName              = tanksName;
            _ammunitionLevel      = randNumber.Next(Constants.MINIMAL_PERCENT, Constants.MAXIMAL_PERCENT);
            _armorLevel           = randNumber.Next(Constants.MINIMAL_PERCENT, Constants.MAXIMAL_PERCENT);
            _maneuverabilityLevel = randNumber.Next(Constants.MINIMAL_PERCENT, Constants.MAXIMAL_PERCENT);
        }