FlockAnimatorExplode Class Reference

Animates some kind of explosion. Adds its part to each Boid velocity. More...

#include <flockanimatorexplode.h>

List of all members.

Public Member Functions

 FlockAnimatorExplode (irr::IrrlichtDevice *d, irr::core::vector3df explCenter, irr::u32 startMs, irr::u32 durationMs, irr::f32 power)
 ~FlockAnimatorExplode ()
 Destructor.
void animateNode (irr::scene::ISceneNode *node, irr::u32 timeMs)


Detailed Description

Animates some kind of explosion. Adds its part to each Boid velocity.

This is an implementation of irr::ISceneNodeAnimator interface. Other FlockAnimators will look like this class. The key is a automated call to animateNode() each frame within Irrlicht engine.

Todo:
Other Animators will follow: FlyStraight, FollowSpline, PSO, Hunt, EscapeFrom, etc...

Definition at line 10 of file flockanimatorexplode.h.


Constructor & Destructor Documentation

FlockAnimatorExplode::FlockAnimatorExplode irr::IrrlichtDevice *  d,
irr::core::vector3df  explCenter,
irr::u32  startMs,
irr::u32  durationMs,
irr::f32  power
 

Constructor.

Parameters:
d : An IrrlichtDevice*, needed to access?
Todo:
device not needed?
Parameters:
explCenter : A vector (type float) as point in 3d space, where the bomb was droped.
startMs : A unsigned integer, determining when to start animation
durationMs : A unsigned integer, determining how long animation should take
power : A float, determining how strong the bomb was. Use somthing like 10.0f.


Member Function Documentation

void FlockAnimatorExplode::animateNode irr::scene::ISceneNode *  node,
irr::u32  timeMs
 

Gets called from irr::SceneManager every frame. Gets a handle to a SceneNode and thus is able to set its position, rendering, etc.

Parameters:
node : An ISceneNode* (of type Flock). All Boid of this Flock are iterated and velocity is altered.
timeMs : An unsigned integer with current virtual game time. Time based animation can be done, also start and duration of animation can be controlled with this.


The documentation for this class was generated from the following files:
Generated on Sun Dec 2 17:09:58 2007 for Swarm by  doxygen 1.4.6-NO