package com.aionemu.gameserver.model.templates.rewards;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import com.aionemu.gameserver.model.templates.QuestTemplate;
import com.aionemu.gameserver.model.templates.itemgroups.ItemRaceEntry;
/**
* <p>
* Java class for CraftReward complex type.
* <p>
* The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="CraftReward">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}int" />
* <attribute name="skill" type="{http://www.w3.org/2001/XMLSchema}int" />
* <attribute name="race" type="{}Race" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
* @author Rolandas
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CraftReward")
@XmlSeeAlso({ CraftRecipe.class, CraftItem.class })
public abstract class CraftReward extends ItemRaceEntry {
@XmlAttribute(name = "skill")
private int skill;
public int getSkill() {
return skill;
}
@Override
protected boolean matchesQuest(QuestTemplate questTemplate) {
return questTemplate.getCombineSkill() == skill;
}
}