DEADSOFTWARE

Add more blocks
[cavedroid.git] / core / src / ru / deadsoftware / cavecraft / game / objects / Block.java
index e888b212fe3d0b7d8ac0b9690dba9757022eac01..77810e95084e6ef1b1f8c54a0bc588b53faadfa4 100644 (file)
@@ -8,9 +8,17 @@ public class Block {
     private Rectangle rect;
     private TextureRegion texture;
 
+    public boolean collision, foreground;
+
     public Block(int x, int y, int w, int h, TextureRegion texture) {
+        this(x,y,w,h,texture, true, false);
+    }
+
+    public Block(int x, int y, int w, int h, TextureRegion texture, boolean collision, boolean foreground) {
         rect = new Rectangle(x,y,w,h);
         this.texture = texture;
+        this.collision = collision;
+        this.foreground = foreground;
     }
 
     public TextureRegion getTexture() {