C# Class LDEngine.ParticleController

Datei anzeigen Open project: GarethIW/LDEngine

Public Properties

Property Type Description
Particles LDEngine.Particle[]
Rand System.Random
_texParticles Microsoft.Xna.Framework.Graphics.Texture2D

Public Methods

Method Description
Add ( Vector2 spawnPos, Vector2 velocity, double attackTime, double lifeTime, double decayTime, bool affectedbygravity, bool canCollide, Rectangle sourcerect, Color col, Action particleFunc, float startScale, float startRot, int depth, ParticleBlend blend ) : void
Draw ( SpriteBatch sb ) : void
Draw ( SpriteBatch sb, Camera gameCamera, int depth ) : void
LoadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
ParticleController ( ) : System
Update ( GameTime gameTime, Map gameMap ) : void

Private Methods

Method Description
Reset ( ) : void

Method Details

Add() public method

public Add ( Vector2 spawnPos, Vector2 velocity, double attackTime, double lifeTime, double decayTime, bool affectedbygravity, bool canCollide, Rectangle sourcerect, Color col, Action particleFunc, float startScale, float startRot, int depth, ParticleBlend blend ) : void
spawnPos Vector2
velocity Vector2
attackTime double
lifeTime double
decayTime double
affectedbygravity bool
canCollide bool
sourcerect Microsoft.Xna.Framework.Rectangle
col Color
particleFunc Action
startScale float
startRot float
depth int
blend ParticleBlend
return void

Draw() public method

public Draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

Draw() public method

public Draw ( SpriteBatch sb, Camera gameCamera, int depth ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
gameCamera TiledLib.Camera
depth int
return void

LoadContent() public method

public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
return void

ParticleController() public method

public ParticleController ( ) : System
return System

Update() public method

public Update ( GameTime gameTime, Map gameMap ) : void
gameTime Microsoft.Xna.Framework.GameTime
gameMap TiledLib.Map
return void

Property Details

Particles public_oe property

public Particle[],LDEngine Particles
return LDEngine.Particle[]

Rand public_oe property

public Random,System Rand
return System.Random

_texParticles public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics _texParticles
return Microsoft.Xna.Framework.Graphics.Texture2D