C# 클래스 Axiom.ParticleSystems.ParticleAffector

Abstract class defining the interface to be implemented by particle affectors.
파일 보기 프로젝트 열기: WolfgangSt/axiom 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
commandTable AxiomCollection
type string

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
RegisterCommands ( ) : void

Registers all attribute names with their respective parser.

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

메소드 상세

AffectParticles() 공개 추상적인 메소드

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.
리턴 void

CopyTo() 공개 메소드

public CopyTo ( ParticleAffector affector ) : void
affector ParticleAffector
리턴 void

InitParticle() 공개 메소드

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.
리턴 void

ParticleAffector() 공개 메소드

Default constructor
public ParticleAffector ( ) : System
리턴 System

RegisterCommands() 보호된 메소드

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

SetParam() 공개 메소드

public SetParam ( string name, string val ) : bool
name string
val string
리턴 bool

프로퍼티 상세

commandTable 보호되어 있는 프로퍼티

protected AxiomCollection commandTable
리턴 AxiomCollection

type 보호되어 있는 프로퍼티

Name of the affector type. Must be initialized by subclasses.
protected string type
리턴 string