C# Class LDEngine.ParticleController

Afficher le fichier Open project: GarethIW/LDEngine

Méthodes publiques

Свойство Type Description
Particles LDEngine.Particle[]
Rand System.Random
_texParticles Microsoft.Xna.Framework.Graphics.Texture2D

Méthodes publiques

Méthode 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

Méthode Description
Reset ( ) : void

Method Details

Add() public méthode

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
Résultat void

Draw() public méthode

public Draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

Draw() public méthode

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

LoadContent() public méthode

public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
Résultat void

ParticleController() public méthode

public ParticleController ( ) : System
Résultat System

Update() public méthode

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

Property Details

Particles public_oe property

public Particle[],LDEngine Particles
Résultat LDEngine.Particle[]

Rand public_oe property

public Random,System Rand
Résultat System.Random

_texParticles public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics _texParticles
Résultat Microsoft.Xna.Framework.Graphics.Texture2D