package org.egordorichev.lasttry.item.items;

import org.egordorichev.lasttry.item.Item;
import org.newdawn.slick.Image;

public class Ammo extends Item {
	public Ammo(int id, String name, Image texture) {
		super(id, name, texture);
	}

	// TODO
}
@@ -148,16 +148,235 @@
  Item %7B%0A
+%09public enum Type %7B%0A%09%09BULLET,%0A%09%09ARROW,%0A%09%09ROCKET,%0A%09%09DART,%0A%09%09SOLUTION, // Used by some tools%0A%09%09BAIT,%0A%09%09WIRE,%0A%09%09OTHER%0A%09%7D%0A%09%0A%09/**%0A%09 * Ammo damage%0A%09 */%0A%09protected int damage;%0A%09%0A%09/**%0A%09 * Ammo type%0A%09 */%0A%09protected Type type;%0A%09%0A
 %09public 
@@ -400,16 +400,39 @@
 ng name,
+ int damage, Type type,
  Image t
@@ -474,17 +474,325 @@
 );%0A%09
-%7D%0A%0A%09// TODO%0A%7D
+%09%0A%09%09this.damage = damage;%0A%09%09this.type = type;%0A%09%7D%0A%0A%09/**%0A%09 * @return if ammo can damage%0A%09 */%0A%09public boolean hasDamage() %7B%0A%09%09return this.damage %3E 0;%0A%09%7D%0A%09%0A%09/**%0A%09 * @return ammo damage%0A%09 */%0A%09public int getDamage() %7B%0A%09%09return this.damage;%0A%09%7D%0A%09%0A%09/**%0A%09 * @return ammo type%0A%09 */%0A%09public Type getType() %7B%0A%09%09return this.type;%0A%09%7D%0A%7D%0A

Update Ammo.java