public void Add(AbstractEmitterType emitter) { Vector3d initialVelocity; Point3d emittionPt = emitter.Emit(out initialVelocity); IQuelea quelea = MakeParticle(queleaSettings[nextIndex], emittionPt, initialVelocity); Quelea.Add(quelea); nextIndex = (nextIndex + 1) % queleaSettings.Count; }
public bool Equals(AbstractEmitterType p) { // If parameter is null return false: if (p == null) { return(false); } // Return true if the fields match: return(continuousFlow.Equals(p.continuousFlow) && creationRate.Equals(p.creationRate) && numAgents.Equals(p.numAgents) && velocityMin.Equals(p.velocityMin) && velocityMax.Equals(p.velocityMax)); }