package org.moparscape.msc.gs.external;

import java.util.HashMap;
import java.util.Set;
import java.util.Map.Entry;

/**
 * The definition wrapper for spells
 */
public class SpellDef extends EntityDef {

    /**
     * The amount of experience given by this spell
     */
    public int exp;
    /**
     * The level required to use the spell
     */
    public int reqLevel;
    /**
     * The number of each type of rune (item id) required
     */
    public HashMap<Integer, Integer> requiredRunes;
    /**
     * The number of different runes needed for the spell
     */
    public int runeCount;
    /**
     * The type of the spell
     */
    public int type;

    public int getExp() {
	return exp;
    }

    public int getReqLevel() {
	return reqLevel;
    }

    public int getRuneCount() {
	return runeCount;
    }

    public Set<Entry<Integer, Integer>> getRunesRequired() {
	return requiredRunes.entrySet();
    }

    public int getSpellType() {
	return type;
    }
}
