DEADSOFTWARE

Add item in player's hand
[cavedroid.git] / core / src / ru / deadsoftware / cavecraft / game / objects / Item.java
index 5e6fdebe8cf523c225559d57a234612e9b3b5bd9..bc2ed8f48814f8526f45833b14061811d76ad389 100644 (file)
@@ -2,10 +2,15 @@ package ru.deadsoftware.cavecraft.game.objects;
 
 public class Item {
 
-    private int texture, type;
+    private int texture;
+    private int type; // 0 - block, 1 - tool, 2 - other
     private int block;
     private String name;
 
+    public Item(String name, int texture, int type) {
+        this(name, texture, type, -1);
+    }
+
     public Item(String name, int texture, int type, int block) {
         this.name = name;
         this.texture = texture;