C# Class Axiom.ParticleSystems.ParticleAffector

Abstract class defining the interface to be implemented by particle affectors.
Afficher le fichier Open project: WolfgangSt/axiom Class Usage Examples

Protected Properties

Свойство Type Description
commandTable AxiomCollection
type string

Méthodes publiques

Méthode Description
AffectParticles ( ParticleSystem system, float timeElapsed ) : void

Method called to allow the affector to 'do it's stuff' on all active particles in the system.

This is where the affector gets the chance to apply it's effects to the particles of a system. The affector is expected to apply it's effect to some or all of the particles in the system passed to it, depending on the affector's approach.

CopyTo ( ParticleAffector affector ) : void

InitParticle ( Particle &particle ) : void

Method called to allow the affector to 'do it's stuff' on all active particles in the system.

This is where the affector gets the chance to apply it's effects to the particles of a system. The affector is expected to apply it's effect to some or all of the particles in the system passed to it, depending on the affector's approach.

ParticleAffector ( ) : System

Default constructor

SetParam ( string name, string val ) : bool

Méthodes protégées

Méthode Description
RegisterCommands ( ) : void

Registers all attribute names with their respective parser.

Methods meant to serve as attribute parsers should use a method attribute to

Method Details

AffectParticles() public abstract méthode

Method called to allow the affector to 'do it's stuff' on all active particles in the system.
This is where the affector gets the chance to apply it's effects to the particles of a system. The affector is expected to apply it's effect to some or all of the particles in the system passed to it, depending on the affector's approach.
public abstract AffectParticles ( ParticleSystem system, float timeElapsed ) : void
system ParticleSystem Reference to a ParticleSystem to affect.
timeElapsed float The number of seconds which have elapsed since the last call.
Résultat void

CopyTo() public méthode

public CopyTo ( ParticleAffector affector ) : void
affector ParticleAffector
Résultat void

InitParticle() public méthode

Method called to allow the affector to 'do it's stuff' on all active particles in the system.
This is where the affector gets the chance to apply it's effects to the particles of a system. The affector is expected to apply it's effect to some or all of the particles in the system passed to it, depending on the affector's approach.
public InitParticle ( Particle &particle ) : void
particle Particle Reference to a ParticleSystem to affect.
Résultat void

ParticleAffector() public méthode

Default constructor
public ParticleAffector ( ) : System
Résultat System

RegisterCommands() protected méthode

Registers all attribute names with their respective parser.
Methods meant to serve as attribute parsers should use a method attribute to
protected RegisterCommands ( ) : void
Résultat void

SetParam() public méthode

public SetParam ( string name, string val ) : bool
name string
val string
Résultat bool

Property Details

commandTable protected_oe property

protected AxiomCollection commandTable
Résultat AxiomCollection

type protected_oe property

Name of the affector type. Must be initialized by subclasses.
protected string type
Résultat string