2953d940989febecabc83467aff77e0de7c98623
1 package ru
.deadsoftware
.cavecraft
.game
.objects
;
3 import com
.badlogic
.gdx
.math
.Rectangle
;
4 import com
.badlogic
.gdx
.math
.Vector2
;
8 public Vector2 position
;
9 public Vector2 moveX
, moveY
;
10 public int width
, height
, dir
;
11 public boolean canJump
;
12 public int[] inventory
;
15 position
= new Vector2(0, 0);
16 moveX
= new Vector2(0, 0);
17 moveY
= new Vector2(0, 0);
20 inventory
= new int[9];
26 public Rectangle
getRect() {
27 return new Rectangle(position
.x
, position
.y
, width
, height
);