com.arca.std.utils.modifiers.Modifier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of arca-std Show documentation
Show all versions of arca-std Show documentation
A module filled with standard functionalities for the Arca framework
package com.arca.std.utils.modifiers;
import com.arca.core.scenenode.function.Consumer;
public abstract class Modifier{
/*========================
////FIELDS & CONSTANTS////
========================*/
protected Consumer mValueSetter;
protected T mInitialValue, mFinalValue;
/*========================
///////CONSTRUCTORS///////
========================*/
protected Modifier(T pInitialValue, T pFinalValue, Consumer pValueSetter) {
mValueSetter = pValueSetter;
mInitialValue = pInitialValue;
mFinalValue = pFinalValue;
}
/*=======================
//////////METHODS////////
=======================*/
public abstract void modify(float pProgress);
/*========================
////GETTERS & SETTERS////
========================*/
public Consumer getValueSetter() {
return mValueSetter;
}
public void setValueSetter(Consumer pValueSetter) {
mValueSetter = pValueSetter;
}
public T getInitialValue() {
return mInitialValue;
}
public void setInitialValue(T pInitialValue) {
mInitialValue = pInitialValue;
}
public T getFinalValue() {
return mFinalValue;
}
public void setFinalValue(T pFinalValue) {
mFinalValue = pFinalValue;
}
/*========================
/////INNER CLASSES////////
========================*/
}