X-Git-Url: https://deadsoftware.ru/gitweb?p=cavedroid.git;a=blobdiff_plain;f=core%2Fsrc%2Fru%2Fdeadsoftware%2Fcavecraft%2Fgame%2Fobjects%2FBlock.java;h=8d27235a4fc941f87309855bf6c85e6e09538ed9;hp=839e383bfd48f63045ceaf21b29767eb65312aa1;hb=8c0966b107ebbf261f8aa9c516fb90b0d9d230e5;hpb=be2690f1dee10f68a5ce6d576ace13c825ac5d15 diff --git a/core/src/ru/deadsoftware/cavecraft/game/objects/Block.java b/core/src/ru/deadsoftware/cavecraft/game/objects/Block.java index 839e383..8d27235 100644 --- a/core/src/ru/deadsoftware/cavecraft/game/objects/Block.java +++ b/core/src/ru/deadsoftware/cavecraft/game/objects/Block.java @@ -8,17 +8,25 @@ public class Block { private int tex; private int hp, drop; - public boolean coll, bg, tp; + public boolean coll, bg, tp, rb; public Block(int tex, int hp, int drop) { - this(0, 0, 16, 16, tex, hp, drop, true, false, false); + this(0, 0, 16, 16, tex, hp, drop, true, false, false, false); } public Block(int tex, int hp, int drop, boolean coll, boolean bg, boolean tp) { - this(0, 0, 16, 16, tex, hp, drop, coll, bg, tp); + this(0, 0, 16, 16, tex, hp, drop, coll, bg, tp, false); + } + + public Block(int tex, int hp, int drop, boolean coll, boolean bg, boolean tp, boolean rb) { + this(0, 0, 16, 16, tex, hp, drop, coll, bg, tp, rb); } public Block(int x, int y, int w, int h, int tex, int hp, int drop, boolean coll, boolean bg, boolean tp) { + this(x, y, w, h, tex, hp, drop, coll, bg, tp, false); + } + + public Block(int x, int y, int w, int h, int tex, int hp, int drop, boolean coll, boolean bg, boolean tp, boolean rb) { this.x = x; this.y = y; this.w = w; @@ -29,6 +37,7 @@ public class Block { this.coll = coll; this.bg = bg; this.tp = tp; + this.rb = rb; } public int getTex() {