Esempio n. 1
0
 public void ResetGame()
 {
     Cells              = GameViewLogic.ZeroOutGrid(20, 10);
     ShortList          = GameViewLogic.CreateKanjiShortList(KanjiList, 5);
     TargetCharacter    = GameViewLogic.SelectTargetKanji(ShortList);
     MeaningListDisplay = GameViewLogic.MeaningListToString(TargetCharacter);
     PlayerLocation     = GameViewLogic.SetPlayer(Cells);
     GameViewLogic.DisperseKanji(Cells, ShortList);
 }
Esempio n. 2
0
        public GameViewModel(string initialSet)
        {
            SetName            = initialSet;
            KanjiList          = DataAccess.LoadKanjiFromSet(initialSet);
            Cells              = GameViewLogic.ZeroOutGrid(20, 10);
            ShortList          = GameViewLogic.CreateKanjiShortList(KanjiList, 5);
            TargetCharacter    = GameViewLogic.SelectTargetKanji(ShortList);
            MeaningListDisplay = GameViewLogic.MeaningListToString(TargetCharacter);
            PlayerLocation     = GameViewLogic.SetPlayer(Cells);
            GameViewLogic.DisperseKanji(Cells, ShortList);

            //Command Initialization
            ArrowCommand        = new BaseCommand(Move);
            SpaceOrEnterCommand = new BaseCommand(HideCorrectionScreen);
        }