X-Git-Url: https://deadsoftware.ru/gitweb?p=cavedroid.git;a=blobdiff_plain;f=core%2Fsrc%2Fru%2Fdeadsoftware%2Fcavecraft%2Fgame%2Fobjects%2FBlock.java;h=77810e95084e6ef1b1f8c54a0bc588b53faadfa4;hp=e888b212fe3d0b7d8ac0b9690dba9757022eac01;hb=3170dad22d4643ae39e66a0d6a445df198418e73;hpb=503cd1720db3f53b7cbf7e3819968044de29a465 diff --git a/core/src/ru/deadsoftware/cavecraft/game/objects/Block.java b/core/src/ru/deadsoftware/cavecraft/game/objects/Block.java index e888b21..77810e9 100644 --- a/core/src/ru/deadsoftware/cavecraft/game/objects/Block.java +++ b/core/src/ru/deadsoftware/cavecraft/game/objects/Block.java @@ -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() {