de.rpgframework.genericrpg.items.ItemAttributeFormulaValue Maven / Gradle / Ivy
package de.rpgframework.genericrpg.items;
import java.util.ArrayList;
import de.rpgframework.genericrpg.modification.Modification;
/**
* @author prelle
*
*/
public class ItemAttributeFormulaValue extends ItemAttributeValue {
private Formula value;
//-------------------------------------------------------------------
public ItemAttributeFormulaValue(A attr, Formula value) {
super(attr);
this.value = value;
}
//-------------------------------------------------------------------
/**
* @return the value
*/
public Formula getFormula() {
return value;
}
//-------------------------------------------------------------------
/**
* @see java.lang.Object#clone()
*/
@Override
public Object clone() {
ItemAttributeFormulaValue copy = new ItemAttributeFormulaValue( this.attribute, value);
copy.addModifications( new ArrayList(this.incomingModifications) );
return copy;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy