MageDefenderDeluxe.GameObjects.SpellHandler.Draw C# (CSharp) Method

Draw() public method

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void
        public override void Draw(GameTime gameTime)
        {
            foreach (Spell s in spells)
            {
                staticSpellModels[s.ModelId].Update(gameTime, s.Render, s.View, s.Projection);
                staticSpellModels[s.ModelId].Draw(gameTime);
            }

            spriteBatch.Begin();
            killEnemyParticles.Draw(gameTime);
            slowEnemyParticles.Draw(gameTime);
            poisonEnemyParticles.Draw(gameTime);
            fireBallParticles.Draw(gameTime);
            magicMissilePartilces.Draw(gameTime);
            spriteBatch.End();

            GraphicsDevice.BlendState = BlendState.Opaque;
            GraphicsDevice.DepthStencilState = DepthStencilState.Default;
            GraphicsDevice.RasterizerState = RasterizerState.CullCounterClockwise;
            GraphicsDevice.SamplerStates[0] = SamplerState.LinearWrap;

            base.Draw(gameTime);
        }