alDenteShort method

void alDenteShort(
  1. dynamic boolFuncOne,
  2. dynamic boolFuncTwo,
  3. bool fulfill
)

Function, that runs until BOTH parameter functions return: true

Implementation

void alDenteShort(var boolFuncOne, var boolFuncTwo, bool fulfill) {
  bool _fulfill = fulfill;
  int _counter = 0;
  do {
    _counter++;
    // make these both functions return boolean value;
    // make: _fulfill = true ONLY when both return a true value
    boolFuncOne();
    boolFuncTwo();

    //    isolateFuncOne()     //coming:    roll inside isolate
    //    isolateFuncTwo()
    if (_counter == 4) (_fulfill = true); // Backdoor

  } while (!_fulfill);
}