private static String CreateDirPath() { BacteriaFactory b = BacteriaFactory.GetInstance(); Model m = Model.GetInstance(); String enviroMode = m.environment.IsDynamic() ? "Dynamic": "Static"; String death = b.GetLifeRegulator() is LifeRegulator ? "Death" : "Immortal"; return(Application.dataPath + "/Exports/" + b.GetRegulatorType().ToString() + "_" + death + "_" + m.GetNumCells(0) + "_" + enviroMode + "_" + BacteriaFactory.GetIterations() + "_" + timeStamp + "/"); }
private Cell parentObject; //TODO replce this with something smarter private ForwardInternals(float v, float dT, float angle, ICellRegulation regulation, int iterations) : base(v, dT, angle, regulation) { initalAngel = angle; this.iterations = iterations; deathDate = iterations + 1; lifeRegulator = BacteriaFactory.GetInstance().GetLifeRegulator(); //crete the arrays positions = new IPointAdapter[iterations + 1]; states = new State[iterations + 1]; cellDeathListeners = new List <ICellDeathListener>(); }