Example #1
0
 public static bool Matches(LevelTileTypes lhs, LevelTileTypes rhs) {
   var matches = lhs & rhs;
   return matches != LevelTileTypes.EMPTY;
 }
Example #2
0
 public bool CheckAtIndex(int c, int r, LevelTileTypes tile)
   => LevelGrid.Matches(this.GetAtIndex(c, r), tile);
Example #3
0
 public bool CheckAtPosition(double x, double y, LevelTileTypes tile)
   => LevelGrid.Matches(this.GetAtPosition(x, y), tile);
Example #4
0
 private LevelTileTypes CheckCollisions_(
     LevelTileTypes tile,
     (float, float) blockPosition)