All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.arca.std.utils.modifiers.Modifier Maven / Gradle / Ivy

There is a newer version: 0.1.1
Show newest version
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////////
	========================*/
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy