Exemplo n.º 1
0
    private void CheckNextObjectiveSetup(string nextObj)
    {
        string[] objSplit = nextObj.Split('>');
        string   type     = objSplit[0].Trim();

        currentTask = type;
        switch (type)
        {
        case "build":
            partialCreated = false;
            getAnswer      = false;
            SM.LevelChecking(false);
            APMultiple.Disappear();
            APSingle.Appear(); //make control panel with buttons appear
            PS.StartMovesCounter();
            CheckMininumMoves(objSplit[1].Trim());
            break;

        case "complete":
            partialCreated = true;
            getAnswer      = false;
            SM.LevelChecking(false);
            partialName = GetPartialMolecule(objSplit[1].Trim());
            CheckMininumMoves(objSplit[1].Trim());
            //partialGO = manager.LoadMolecule(partialName, false);
            APMultiple.Disappear();
            APSingle.Appear(); //make control panel with buttons appear
            PS.StartMovesCounter();
            break;

        case "transform":
            partialCreated = true;
            getAnswer      = false;
            SM.LevelChecking(false);
            partialName = objSplit[2].Trim();
            //partialGO = manager.LoadMolecule(objSplit[2].Trim(), false);
            APMultiple.Disappear();
            APSingle.Appear(); //make control panel with buttons appear
            CheckMininumMoves(objSplit[1].Trim());
            PS.StartMovesCounter();
            break;

        case "load":
            partialCreated = false;
            SM.LevelChecking(true);
            APMultiple.Disappear();
            APSingle.Appear(); //make control panel with buttons appear
            break;

        case "save":
            partialCreated = false;
            SM.LevelChecking(false);
            APMultiple.Disappear();
            APSingle.Appear(); //make control panel with buttons appear
            break;

        case "place":
            partialCreated = false;
            manager.LoadMolecule(objSplit[1].Trim() + "_place", false);
            SM.LevelChecking(false);
            break;

        case "multiple choice":
            partialCreated = true;
            partialName    = objSplit[2].Trim();
            //partialGO = manager.LoadMolecule(partialName, false);
            SM.LevelChecking(false);
            APSingle.Disappear();
            APMultiple.Appear(); //make control panel with buttons appear
            PS.StartAnswersCounter();
            getAnswer = true;
            break;
        }
    }