Exemple #1
0
 public bool StillContainsItem()
 {
     for (int column = 0; column < PlaygroundData.GetLength(0); column++)
     {
         for (int row = 0; row < PlaygroundData.GetLength(1); row++)
         {
             if (PlaygroundData[column, row] is ItemField)
             {
                 return(true);
             }
         }
     }
     return(false);
 }
Exemple #2
0
 private bool FindPawn()
 {
     for (int column = 0; column < PlaygroundData.GetLength(0); column++)
     {
         for (int row = 0; row < PlaygroundData.GetLength(1); row++)
         {
             var pawn = PlaygroundData[column, row] as PlayerField;
             if (pawn != null)
             {
                 Pawn = pawn;
                 return(true);
             }
         }
     }
     return(false);
 }