Exemple #1
0
 public override void Update(ParticleDataStructure particleStorage)
 {
     base.Update(particleStorage);
     if (roundsLeft > 0)
         roundsLeft--;
     else
         remove = true;
 }
Exemple #2
0
        public MAOParticleManager(Rectangle boundries, int maxPart, int particleSize, Action<Particle> perParticle)
        {
            this.perParticle = perParticle;
            lastRound = 0;
            sources = new List<Source>();
            boundry = boundries;
            this.particleSize = particleSize;
            maxParticles = maxPart;

            particleStorage = new ParticleDataStructure(boundries.Width/particleSize, boundries.Height/particleSize, maxPart);

            white = FSGGame.white;
        }
Exemple #3
0
 public override void Update(ParticleDataStructure particleStorage)
 {
     base.Update(particleStorage);
 }
Exemple #4
0
 //For particles that move
 public virtual void Update(ParticleDataStructure particleStorage)
 {
     Vector2 newPosition = position + velocity;
     particleStorage.moveParticle(this, (int)newPosition.X, (int)newPosition.Y);
 }