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); }
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); }