#include <Particles.h>
Public Member Functions | |
CGun (int numParticles) | |
CGun standard constructor. | |
bool | checkHit (D3DXVECTOR3 position, float radius) |
check if particle has hit the dwarf! (Or whatever in that position) | |
void | shootParticle (D3DXVECTOR3 position, float facing) |
shoots particles from turtles mouth. | |
void | resetParticle (Attribute *attribute) |
resets gun particles. | |
void | Update (float timeDelta, bool slow, bool follow) |
Updates position of gun particles (moves bit forward every frame). | |
void | SetParticleColor (D3DCOLOR color) |
Change color of particles. |
Turtle gun fire is displayed with particle system.
CGun::CGun | ( | int | numParticles | ) |
CGun standard constructor.
numParticles | total number of particles in the system. |
bool CGun::checkHit | ( | D3DXVECTOR3 | position, | |
float | radius | |||
) |
check if particle has hit the dwarf! (Or whatever in that position)
position | position of target to be hit. | |
radius | radius from position that is considered a hit. |
void CGun::shootParticle | ( | D3DXVECTOR3 | position, | |
float | facing | |||
) |
shoots particles from turtles mouth.
facing | where turtle is pointing to. |
void CGun::resetParticle | ( | Attribute * | attribute | ) | [virtual] |
void CGun::Update | ( | float | timeDelta, | |
bool | slow, | |||
bool | follow | |||
) | [virtual] |
Updates position of gun particles (moves bit forward every frame).
Implements PSystem.
void CGun::SetParticleColor | ( | D3DCOLOR | color | ) |
Change color of particles.
color | new particle color. |