/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package transientlibs.bindedobjects.core.datasets;
import java.util.ArrayList;
import transientlibs.bindedobjects.core.datasets.BindedValue;
import transientlibs.bindedobjects.core.Binding;
import transientlibs.bindedobjects.core.loaders.EventsLoader;
import transientlibs.objects.general.TransientArrayList;
import transientlibs.slick2d.util.Log;
import transientlibs.tex.ActList;
import transientlibs.tex.Branch;
import transientlibs.tex.BranchList;
import transientlibs.tex.ReqList;
/**
*
* @author kibertoad
*/
public class Events extends BindedValue {
public static BindedValueContainer<Events> container = new BindedValueContainer<Events>(Binding.eventBinding);
public boolean isRecurring = false;
//public static Events lastEvent;
//public String group;
//public static TransientArrayList<Events> events = new TransientArrayList<Events>();
/*
public static ReqList globalReqs = new ReqList();
public static ReqList globalActivationReq = new ReqList();
public static ActList globalActs = new ActList();
public static ArrayList<String> globalTags = new ArrayList<String>();
public static String globalGroup = "-";
public static ReqList mainReqList;
public static ActList mainActList;
*/
public Branch eval = null;
public BranchList tex = null;
public static void loadEvents() {
EventsLoader loader = new EventsLoader(container);
loader.loadAllEvents();
}
public void fullProcessing() {
reEvaluate();
if ((reqs.isFulfilled())) // && (reqsToActivate.isFulfilled()))
{
Log.info("Activate event! " + acts.size() + " activators.");
acts.process();
}
}
}