Свойство | Тип | Описание | |
---|---|---|---|
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.
|
public ApplyAcceloration ( Vector2 &acceloration ) : void | ||
acceloration | Vector2 | The acceloration. |
Результат | void |
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 |
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 |
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 |
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 |