public void reset(List <VocabularyLeitner> alv) { this.session = 0; this.selectedVocabulary = null; this.vocabulary = new LinkedList <VocabularyLeitner>(alv); this.box0 = new List <VocabularyLeitner>(alv); this.box1 = new List <VocabularyLeitner>(); this.box2 = new List <VocabularyLeitner>(); }
public VocabularySquare(Game game, int x, int y, int size, VocabularyLeitner VocabularyLeitner) : base(game) { this.Square = new Rectangle(x, y, size, size); this.VocabularyLeitner = VocabularyLeitner; this.CurrentMouseState = Mouse.GetState(); this.LastMouseState = this.CurrentMouseState; this.Size = this.Square.X; VocabularySquare.DisplayCorrectImage = 0; }
public void next() { if (this.vocabulary.Count == 0) { this.sort(); this.changeSession(); ShuffleList.Shuffle <VocabularyLeitner>(this.box0); ShuffleList.Shuffle <VocabularyLeitner>(this.box1); ShuffleList.Shuffle <VocabularyLeitner>(this.box2); this.getVocabulary(); } this.selectedVocabulary = this.vocabulary.First(); this.vocabulary.RemoveFirst(); }