public SystemType(SystemType system) { // private ISpatialCollection<AgentType> particles; queleaSettings = system.queleaSettings; emitters = system.emitters; environment = system.environment; Quelea = UpdateDynamicSpatialDataStructure((IList <IQuelea>)system.Quelea.SpatialObjects); }
public bool Equals(SystemType s) { // If parameter is null return false: if (s == null) { return(false); } // Return true if the fields match: return((emitters.Equals(s.emitters)) && (queleaSettings.Equals(s.Quelea.SpatialObjects)) && (environment.Equals(s.environment))); }
public SystemType(List <IQuelea> queleaSettings, List <AbstractEmitterType> emitters, AbstractEnvironmentType environment, SystemType system) { timestep = system.timestep; //nextIndex = system.nextIndex; this.queleaSettings = queleaSettings; this.emitters = emitters; this.environment = environment; //this.min = system.min; //this.max = system.max; this.Quelea = system.Quelea; Quelea = UpdateDynamicSpatialDataStructure((IList <IQuelea>)system.Quelea.SpatialObjects);//new SpatialCollectionAsBinLattice<IQuelea>(min, max, (int)(Number.Clamp((min.DistanceTo(max) / 5), 5, 25)), (IList<IQuelea>)system.Quelea.SpatialObjects); }