コード例 #1
0
 public static string numberTypeToString(numberType numberType)
 {
     if (numberType == numberType.core)
     {
         return("core");
     }
     else if (numberType == numberType.neighbour01)
     {
         return("neighbour01");
     }
     else if (numberType == numberType.neighbour02)
     {
         return("neighbour02");
     }
     else if (numberType == numberType.mixed)
     {
         return("mixed");
     }
     else if (numberType == numberType.even)
     {
         return("even");
     }
     else if (numberType == numberType.uneven)
     {
         return("uneven");
     }
     else
     {
         Debug.LogWarning("No Matching numbertype found.");
         return("mixed");
     }
 }
コード例 #2
0
    public void setSettings(int rangeOfNumbers, numberType numberTypeFront, numberType numberTypeBack, bool opPlusIsPossible, bool opTimesIsPossible, bool opMinusisPossible,
                            bool opDividedIsPossible, bool ttGreaterIsPossible, bool ttSameIsPossible, bool ttSmallerIsPossible, bool ttEqualsIsPossible,
                            bool ttOneTimesOneIsPossible, float timeSpecification)
    {
        _rangeOfNumbers             = rangeOfNumbers;
        _numberTypeFront            = numberTypeFront;
        _numberTypeBack             = numberTypeBack;
        _operationPlusIsPossible    = opPlusIsPossible;
        _operationTimesIsPossible   = opTimesIsPossible;
        _operationMinusIsPossible   = opMinusisPossible;
        _operationDividedIsPossible = opDividedIsPossible;
        _taskTypeGreaterIsPossible  = ttGreaterIsPossible;
        _taskTypeSameIsPossible     = ttSameIsPossible;
        _taskTypeSmallerIsPossible  = ttSmallerIsPossible;
        //_taskTypeEqualsIsPossible = ttEqualsIsPossible;
        _taskTypeEqualsIsPossible      = false; // Always disabled
        _taskTypeOneTimesOneIsPossible = ttOneTimesOneIsPossible;
        _timeSpecification             = timeSpecification;

        fullyInitialised = true;
        //logAllSettings();
    }