FlockAnimatorTornado Class Reference

Animates a Flock like an tornado. Tornado center (eye) is down on the bottom. More...

#include <flockanimatortornado.h>

List of all members.

Public Member Functions

 FlockAnimatorTornado (irr::IrrlichtDevice *d)
 ~FlockAnimatorTornado ()
 Destructor.
void animateNode (irr::scene::ISceneNode *node, irr::u32 timeMs)


Detailed Description

Animates a Flock like an tornado. Tornado center (eye) is down on the bottom.

Tornado is influenced by windstrength. 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.

Definition at line 14 of file flockanimatortornado.h.


Constructor & Destructor Documentation

FlockAnimatorTornado::FlockAnimatorTornado irr::IrrlichtDevice *  d  ) 
 

Constructor.

Parameters:
d : An IrrlichtDevice*, needed to access?
Todo:
device not needed?


Member Function Documentation

void FlockAnimatorTornado::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.
Note:
Paramter "node" must be of class Flock.


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