DEADSOFTWARE

Fix code style
[cavedroid.git] / core / src / ru / deadsoftware / cavecraft / game / objects / Item.java
index 5e6fdebe8cf523c225559d57a234612e9b3b5bd9..8c1388116b351913dd36323a9914d50e16f4b4ac 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;
@@ -16,12 +21,15 @@ public class Item {
     public int getTexture() {
         return texture;
     }
+
     public int getType() {
         return type;
     }
+
     public int getBlock() {
         return block;
     }
+
     public String getName() {
         return name;
     }