X-Git-Url: https://deadsoftware.ru/gitweb?p=cavedroid.git;a=blobdiff_plain;f=core%2Fsrc%2Fru%2Fdeadsoftware%2Fcavecraft%2Fgame%2Fobjects%2FBlock.java;h=839e383bfd48f63045ceaf21b29767eb65312aa1;hp=dfd8351dffbd6dc694ee9be42f8263e2c1311d64;hb=feb58daa2c3e8126871e9d4f26e978d2fc1fb01c;hpb=84b8cd80e39699174969bfed0734e78b8ec09615 diff --git a/core/src/ru/deadsoftware/cavecraft/game/objects/Block.java b/core/src/ru/deadsoftware/cavecraft/game/objects/Block.java index dfd8351..839e383 100644 --- a/core/src/ru/deadsoftware/cavecraft/game/objects/Block.java +++ b/core/src/ru/deadsoftware/cavecraft/game/objects/Block.java @@ -5,34 +5,34 @@ import com.badlogic.gdx.math.Rectangle; public class Block { private int x, y, w, h; - private int texture; + private int tex; private int hp, drop; - public boolean collision, background, transparent; + public boolean coll, bg, tp; - public Block(int texture, int hp, int drop) { - this(0, 0, 16, 16, texture, hp, drop, true, false, false); + public Block(int tex, int hp, int drop) { + this(0, 0, 16, 16, tex, hp, drop, true, false, false); } - public Block(int texture, int hp, int drop, boolean collision, boolean background, boolean transparent) { - this(0, 0, 16, 16, texture, hp, drop, collision, background, transparent); + 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); } - public Block(int x, int y, int w, int h, int texture, int hp, int drop, boolean collision, boolean background, boolean transparent) { + public Block(int x, int y, int w, int h, int tex, int hp, int drop, boolean coll, boolean bg, boolean tp) { this.x = x; this.y = y; this.w = w; this.h = h; - this.texture = texture; + this.tex = tex; this.hp = hp; this.drop = drop; - this.collision = collision; - this.background = background; - this.transparent = transparent; + this.coll = coll; + this.bg = bg; + this.tp = tp; } - public int getTexture() { - return texture; + public int getTex() { + return tex; } public int getHp() { @@ -50,7 +50,7 @@ public class Block { } public boolean toJump() { - return (y < 8 && collision); + return (y < 8 && coll); } }