GridBits improvements
@@ -14,6 +14,10 @@ public class GridBits{
return bits.get(x + y*width);
}
+ public void set(int x, int y){
+ bits.set(x + y * width);
+ }
+
public void set(int x, int y, boolean b){
if(b){
bits.set(x + y * width);
@@ -22,6 +26,10 @@ public class GridBits{
}
}
+ public void clear(){
+ bits.clear();
+ }
+
public int width(){
return width;
}
