Ejemplo n.º 1
0
        public Field GetField(int indexStart, int indexEnd)
        {
            Field field = FieldFactory.MakeField(indexStart, indexEnd);

            AccessibleLeximIDs.Clear();
            foreach (LexemView lexim in field.LexemLines[field.LexemLines.Count - 1].LexemViews)
            {
                lexim.IsAccessible = true;
                AccessibleLeximIDs.Add(lexim.ID);
            }
            this.GameField = field;
            return(field);
        }
Ejemplo n.º 2
0
 private void SetPreviosAccessible(ref ThrowResult result)
 {
     if (LeximPronouncedID == this.GameField.LexemLines[result.Row].LexemViews[result.Column].ID)
     {
         AccessibleLeximIDs.RemoveAt(LeximIdIndex);
         result.HitResult = true;
         this.GameField.LexemLines[result.Row].LexemViews[result.Column].IsVisible    = false;
         this.GameField.LexemLines[result.Row].LexemViews[result.Column].IsAccessible = false;
         if (result.Row > 0)
         {
             this.GameField.LexemLines[result.Row - 1].LexemViews[result.Column].IsAccessible = true;
             AccessibleLeximIDs.Add(this.GameField.LexemLines[result.Row - 1].LexemViews[result.Column].ID);
         }
     }
 }