// Path: engine/src/main/java/edu/brown/cs/roguelike/engine/entities/DamageType.java
// public enum DamageType {
// 	PIERCE,
// 	SLASH,
// 	BLUNT,
// 	MAGIC,
// 	FIRE,
// 	COLD,
// 	LIGHT,
// 	DARK,
// 	WIND,
// 	EARTH
// }


import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import edu.brown.cs.roguelike.engine.entities.DamageType;
package edu.brown.cs.roguelike.engine.config;




/**
 * Intermediate Weapon Type Format
 * 
 * 
 * @author jte
 *
 */
public class WeaponTemplate {
	public final int tier;
	public final String name;
	public final DamageType damageType;


	@JsonCreator
	public WeaponTemplate(
			@JsonProperty("tier") int tier, 
			@JsonProperty("name") String name, 
			@JsonProperty("type") String type) {

			
		this.name = name;
		this.tier = tier;
		
		String t= type.toLowerCase();
		if (t.equals("slash")) { this.damageType = DamageType.SLASH; }
		else if (t.equals("blunt")) { this.damageType = DamageType.BLUNT; }
// Path: engine/src/main/java/edu/brown/cs/roguelike/engine/entities/DamageType.java
// public enum DamageType {
// 	PIERCE,
// 	SLASH,
// 	BLUNT,
// 	MAGIC,
// 	FIRE,
// 	COLD,
// 	LIGHT,
// 	DARK,
// 	WIND,
// 	EARTH
// }


// Path: engine/src/main/java/edu/brown/cs/roguelike/engine/config/WeaponTemplate.java
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import edu.brown.cs.roguelike.engine.entities.DamageType;

package edu.brown.cs.roguelike.engine.config;




/**
 * Intermediate Weapon Type Format
 * 
 * 
 * @author jte
 *
 */
public class WeaponTemplate {
	public final int tier;
	public final String name;
	public final DamageType damageType;


	@JsonCreator
	public WeaponTemplate(
			@JsonProperty("tier") int tier, 
			@JsonProperty("name") String name, 
			@JsonProperty("type") String type) {

			
		this.name = name;
		this.tier = tier;
		
		String t= type.toLowerCase();
		if (t.equals("slash")) { this.damageType = DamageType.SLASH; }
		else if (t.equals("blunt")) { this.damageType = DamageType.BLUNT; }
		else if (t.equals("pierce")) { this.damageType = DamageType.PIERCE; }