C# 클래스 Project290.Particles.Particle

A single particle.
파일 보기 프로젝트 열기: scastle/Solitude 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Action ParticleAction
ActionUniqueIdentifier byte
CreationTime long
Position Vector2
Rotation float
RotationSpeed float
Scale float
Velocity Vector2
color Color

공개 메소드들

메소드 설명
ApplyAcceloration ( Vector2 &acceloration ) : void

Applies the acceloration to the velcoity of the particle.

Dispose ( ) : void

Releases unmanaged and - optionally - managed resources

Draw ( ) : void

Draws this instance.

Particle ( float xPosition, float yPosition, float xVelocity, float yVelocity, Color color, float scale, float rotation, byte actionUniqueIdentifier, ParticleAction action ) : System

Initializes a new instance of the Particle class.

Particle ( float xPosition, float yPosition, float xVelocity, float yVelocity, Color color, float scale, float rotation, float rotationSpeed, byte actionUniqueIdentifier, ParticleAction action ) : System

Initializes a new instance of the Particle class.

Reset ( float xPosition, float yPosition, float xVelocity, float yVelocity, Color color, float scale, float rotation, byte actionUniqueIdentifier, ParticleAction action ) : void

Resets the specified x position.

Reset ( float xPosition, float yPosition, float xVelocity, float yVelocity, Color color, float scale, float rotation, float rotationSpeed, byte actionUniqueIdentifier, ParticleAction action ) : void

Resets the specified x position.

Update ( ) : void

Updates this instance.

메소드 상세

ApplyAcceloration() 공개 메소드

Applies the acceloration to the velcoity of the particle.
public ApplyAcceloration ( Vector2 &acceloration ) : void
acceloration Vector2 The acceloration.
리턴 void

Dispose() 공개 메소드

Releases unmanaged and - optionally - managed resources
public Dispose ( ) : void
리턴 void

Draw() 공개 메소드

Draws this instance.
public Draw ( ) : void
리턴 void

Particle() 공개 메소드

Initializes a new instance of the Particle class.
public Particle ( float xPosition, float yPosition, float xVelocity, float yVelocity, Color color, float scale, float rotation, byte actionUniqueIdentifier, ParticleAction action ) : System
xPosition float The x position.
yPosition float The y position.
xVelocity float The x velocity.
yVelocity float The y velocity.
color Color The color to overlay the drawn image with.
scale float The scale.
rotation float The rotation.
actionUniqueIdentifier byte This is used to identify what "type" in a custom action this particle belongs to. /// For example, you may want to have one action which could draw one of several different /// images. You can set this value to indicate which image to draw. This does not have /// to be used.
action ParticleAction The action. This should be a reference to a STATIC object, for memory sake.
리턴 System

Particle() 공개 메소드

Initializes a new instance of the Particle class.
public Particle ( float xPosition, float yPosition, float xVelocity, float yVelocity, Color color, float scale, float rotation, float rotationSpeed, byte actionUniqueIdentifier, ParticleAction action ) : System
xPosition float The x position.
yPosition float The y position.
xVelocity float The x velocity.
yVelocity float The y velocity.
color Color The color to overlay the drawn image with.
scale float The scale.
rotation float The rotation.
rotationSpeed float The rotaiton speed.
actionUniqueIdentifier byte This is used to identify what "type" in a custom action this particle belongs to. /// For example, you may want to have one action which could draw one of several different /// images. You can set this value to indicate which image to draw. This does not have /// to be used.
action ParticleAction The action. This should be a reference to a STATIC object, for memory sake.
리턴 System

Reset() 공개 메소드

Resets the specified x position.
public Reset ( float xPosition, float yPosition, float xVelocity, float yVelocity, Color color, float scale, float rotation, byte actionUniqueIdentifier, ParticleAction action ) : void
xPosition float The x position.
yPosition float The y position.
xVelocity float The x velocity.
yVelocity float The y velocity.
color Color The color to overlay the drawn image with.
scale float The scale.
rotation float The rotation.
actionUniqueIdentifier byte This is used to identify what "type" in a custom action this particle belongs to. /// For example, you may want to have one action which could draw one of several different /// images. You can set this value to indicate which image to draw. This does not have /// to be used.
action ParticleAction The action. This should be a reference to a STATIC object, for memory sake.
리턴 void

Reset() 공개 메소드

Resets the specified x position.
public Reset ( float xPosition, float yPosition, float xVelocity, float yVelocity, Color color, float scale, float rotation, float rotationSpeed, byte actionUniqueIdentifier, ParticleAction action ) : void
xPosition float The x position.
yPosition float The y position.
xVelocity float The x velocity.
yVelocity float The y velocity.
color Color The color to overlay the drawn image with.
scale float The scale.
rotation float The rotation.
rotationSpeed float The rotation speed.
actionUniqueIdentifier byte This is used to identify what "type" in a custom action this particle belongs to. /// For example, you may want to have one action which could draw one of several different /// images. You can set this value to indicate which image to draw. This does not have /// to be used.
action ParticleAction The action. This should be a reference to a STATIC object, for memory sake.
리턴 void

Update() 공개 메소드

Updates this instance.
public Update ( ) : void
리턴 void

프로퍼티 상세

Action 공개적으로 프로퍼티

The action to be performed per update.
public ParticleAction Action
리턴 ParticleAction

ActionUniqueIdentifier 공개적으로 프로퍼티

This is used to identify what "type" in a custom action this particle belongs to. For example, you may want to have one action which could draw one of several different images. You can set this value to indicate which image to draw. This does not have to be used.
public byte ActionUniqueIdentifier
리턴 byte

CreationTime 공개적으로 프로퍼티

Gets the creation time.
public long CreationTime
리턴 long

Position 공개적으로 프로퍼티

Gets the position.
public Vector2 Position
리턴 Vector2

Rotation 공개적으로 프로퍼티

The rotation of the particle.
public float Rotation
리턴 float

RotationSpeed 공개적으로 프로퍼티

Speed at which an increase in rotation is applied.
public float RotationSpeed
리턴 float

Scale 공개적으로 프로퍼티

The scale of the particle.
public float Scale
리턴 float

Velocity 공개적으로 프로퍼티

Gets the velocity.
public Vector2 Velocity
리턴 Vector2

color 공개적으로 프로퍼티

Gets the color to overlay the draw image with.
public Color color
리턴 Color