Class TAdStdParticle

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TAdStdParticle = class(TAdParticle)

Description

A standard particle class that implements the behaviour of a base particle. This classes uses point sprites for drawing the particles. Operations like scaling or rotation are not availale in this particle class.

Hierarchy

Overview

Methods

Public constructor Create(ASystem: TAdParticleSystem); override;
Public destructor Destroy; override;
Public class function VerticesPerParticle: integer; override;
Public class function IndicesPerParticle: integer; override;
Public class function DrawMode: TAd2DDrawMode; override;
Public procedure SetupMovement(AX, AY: integer); override;
Public procedure Assign(APart: TAdParticle); override;
Public procedure Move(ATimeGap: double); override;
Public procedure StoreData(AData: PAdParticleData); override;
Public procedure StoreMinMax(AData: PAdParticleData); override;
Public function SaveToXML(ARoot: TAdSimpleXMLElems):TAdSimpleXMLElem; override;
Public procedure LoadFromXML(ARoot: TAdSimpleXMLElem); override;

Properties

Published property XVelocity: TAdParticleParameter read FXVelocity write FXVelocity;
Published property YVelocity: TAdParticleParameter read FYVelocity write FYVelocity;
Published property ZVelocity: TAdParticleParameter read FZVelocity write FZVelocity;
Published property LifeTime: double read FMaxLifeTime write FMaxLifeTime;
Published property LifeTimeVariation: double read FLifeTimeVariation write FLifeTimeVariation;
Published property CreationAngle: integer read FCreationAngle write FCreationAngle;
Published property CreationAngleRange: integer read FCreationAngleRange write FCreationAngleRange;

Description

Methods

Public constructor Create(ASystem: TAdParticleSystem); override;
 
Public destructor Destroy; override;
 
Public class function VerticesPerParticle: integer; override;
 
Public class function IndicesPerParticle: integer; override;
 
Public class function DrawMode: TAd2DDrawMode; override;
 
Public procedure SetupMovement(AX, AY: integer); override;
 
Public procedure Assign(APart: TAdParticle); override;
 
Public procedure Move(ATimeGap: double); override;
 
Public procedure StoreData(AData: PAdParticleData); override;
 
Public procedure StoreMinMax(AData: PAdParticleData); override;
 
Public function SaveToXML(ARoot: TAdSimpleXMLElems):TAdSimpleXMLElem; override;
 
Public procedure LoadFromXML(ARoot: TAdSimpleXMLElem); override;
 

Properties

Published property XVelocity: TAdParticleParameter read FXVelocity write FXVelocity;

Describes how fast the particle should move on the X-Axis. Unit: Pixel per second

Published property YVelocity: TAdParticleParameter read FYVelocity write FYVelocity;

Describes how fast the particle should move on the Y-Axis. Unit: Pixel per second

Published property ZVelocity: TAdParticleParameter read FZVelocity write FZVelocity;

Describes how fast the particle should move on the Z-Axis. Unit: Pixel per second

Published property LifeTime: double read FMaxLifeTime write FMaxLifeTime;

Describes how long the particle should live. Unit: seconds

Published property LifeTimeVariation: double read FLifeTimeVariation write FLifeTimeVariation;

Use this value to variate the life time. Unit: percent. Range: 0-100

Published property CreationAngle: integer read FCreationAngle write FCreationAngle;

The angle the particles should be emitted from. Unit: degrees. Range: 0-360

Published property CreationAngleRange: integer read FCreationAngleRange write FCreationAngleRange;

Relative to the angle given in "CreationAngle", this value sets the range particles are emitted from. Unit: degrees. Range: 0-360

SourceForge.net Logo


Generated by PasDoc 0.11.0 on 2008-12-31 14:32:00