Exemple #1
0
 private static SaveGame getDataToSave(MapLearner mapLearner, string saveName)
 {
     return(new SaveGame
     {
         Name = saveName,
         CurrentState = mapLearner.CurrentState,
         States = mapLearner.States,
         Region = MapLearnerRegionHelper.convertRegionToString(mapLearner.Region)
     });
 }
 private void initializeBoard()
 {
     TimedModeOn = false;
     setDefaultColors();
     textInputBox.Text     = "";
     speechOutputBox.Text  = "";
     mapImage.Source       = mapLearner.CurrentState.getImage();
     regionLabel.Text      = MapLearnerRegionHelper.convertRegionToString(mapLearner.Region, true);
     scoreOutputLabel.Text = mapLearner.foundStates().Count + " / " + mapLearner.States.Count;
 }