The methods of the XNACS1ParticleEmitter class are listed below. For a complete list of XNACS1ParticleEmitter class members, see the XNACS1ParticleEmitter Members topic.
![]() | Returns if the center of this primitive is "above" (in y) in relation to the center of otherPrimitive. |
![]() | Adds the emitter to the emitter update list. This will cause the emitter's UpdateEmitter function to be called once per tick and it to emit particles as defined. Newly created emitters are automatically in the update set. |
![]() | Add this primitive to the AutoDrawSet. If this primitive already exists in the draw set, this function call is ignored. By default, all primitive are added into the AutoDrawSet. |
![]() | Returns if the center of this primitive is "below" (in y) in relation to the center of otherPrimitive. |
![]() | Overloaded. Determines if this primitive collides with the otherPrimitive. If true, pos is the colliding position. |
![]() | If visible, draws the primitive with the associated text label. |
![]() | Retruns if the current velocity is non-zero. |
![]() | Determines if this primitive is in the AutoDrawSet. |
![]() | Returns if the center of this primitive is "to the left" (in x) in relation to the center of otherPrimtive |
![]() | Removes the emitter from the emitter update list. To be called before removing all references to the emitter so that garbage collection can collect it. |
![]() | Remove this primitive from the AutoDrawSet. After this function call, this primitive will not be drawn in the application window. |
![]() | Returns if the center of this primitive is "to the right" (in x) in relation to the center of otherPrimitive |
![]() | Sets animation parameters for a sprite sheet primitive. Zero-based first frame column for the beginning sprite in the animation sequence.
Zero-based first frame row for the beginning sprite in the animation sequence.
Zero-based first frame column for the ending sprite in the animation sequence.
Zero-based first frame row for the ending sprite in the animation sequence.
How many ticks the animation will pause for on each frame.
The behavior of the animation loop.
|
![]() | Defines a texture specified for a primitive to behave like a sprite sheet with the specified number of sprites. The default sprite to be drawn is the top left sprite in the sheet. Example: The texture for a given primitive has 16 sprites in it, arranged in a 4 by 4 pattern. By default, all 16 sprites will be displayed, stretched to fit the primitive. Calling this method allows you to specify the number of sprites in the texture. The texture of the sprite sheet to be used.
The number of columns in the sprite sheet (number of sprites in a single row).
Number of rows in the sprite sheet.
The padding between sprites and on the top and left edge.
|
![]() | Make sure this primitive is drawn on top of all other primitives. |
![]() | Moves the primitive during each update cycle. This function is automacially called for all visible primitives. Default behavior is to move the primitive if: . Primitive is visible (invivislble primitive is not updated) . ShouldTravel is true . HasNonZeroVelocity() is true |
![]() | Draws all the particles in the emitter |
![]() | When this method is called a new particle will be added to the emitter set and NewParticle() will be called to change the initial parameters of the particle if needed. |
![]() | Overloaded. Removes a particle from the emitter list. |
![]() | This method is called by the Emit method whenever a particle is created. By default particles are created at the Center location of the emitter with InitialLife, InitialSize, DefaultTexture, and DefaultColor. Newly created particles also have shouldtravel set to false and velocity = 0. By overloading this method you can change these properties to make particles emit in different ways. Particle that has just been created and added to the set.
|
![]() | Controls updates for AttachedPrimitive, AutoRemoveDead, and AutoEmit. Overload at your own risk! |
![]() | This is where you define the behavior of particles in the emitter. This method will be called once a tick for each particle if the emitter is in the Emitter Update Set. This is an abstract method and must be overloaded. |
XNACS1ParticleEmitter Class | XNACS1Lib Namespace