1 package ru
.deadsoftware
.cavecraft
.game
.objects
;
3 import com
.badlogic
.gdx
.graphics
.g2d
.TextureRegion
;
4 import com
.badlogic
.gdx
.math
.Rectangle
;
8 private Rectangle rect
;
9 private TextureRegion texture
;
11 public Block(int x
, int y
, int w
, int h
, TextureRegion texture
) {
12 rect
= new Rectangle(x
,y
,w
,h
);
13 this.texture
= texture
;
16 public TextureRegion
getTexture() {
20 public Rectangle
getRect() {
32 public int getWidth() {
33 return (int)rect
.width
;
36 public int getHeight() {
37 return (int)rect
.height
;