bool IsScreenQuadrantVacant(TwoByTwoDynamicRectGrid.CellQuadrant quadrant) { bool isVacant = true; foreach (var view in mappedViews.Values) { isVacant &= view.quadrant != quadrant; } return(isVacant); }
bool IsAViewAt(TwoByTwoDynamicRectGrid.CellQuadrant position) { bool isAtPosition = false; foreach (var view in mappedViews.Values) { isAtPosition |= view.isAt(position); } return(isAtPosition); }
public bool isAt(TwoByTwoDynamicRectGrid.CellQuadrant position) { return(this.quadrant == position); }
public View(Camera cam, TwoByTwoDynamicRectGrid.CellQuadrant pos) { camera = cam; quadrant = pos; }