StateTerrain Class Reference

Terrain state. Drives a object of class Terrain. Testing LOD stuff. More...

#include <stateterrain.h>

Inheritance diagram for StateTerrain:

State List of all members.

Public Member Functions

 StateTerrain (irr::c8 *n, irr::IrrlichtDevice *d)
 ~StateTerrain ()
 Destructor.
bool OnEvent (irr::SEvent event)
void entry (void)
void exit (void)
void render (irr::u32 deltaTime)

Detailed Description

Terrain state. Drives a object of class Terrain. Testing LOD stuff.

This is similar to StateFlockSimulation, but with FPS camera.

Definition at line 16 of file stateterrain.h.


Constructor & Destructor Documentation

StateTerrain::StateTerrain irr::c8 *  n,
irr::IrrlichtDevice *  d
 

Constructor.

Parameters:
n : A string, usualy something like "STATE_TERRAIN"
d : A IrrlichtDevice*, used to access media.


Member Function Documentation

void StateTerrain::entry void   )  [virtual]
 

See also:
State::entry()

Implements State.

Definition at line 131 of file stateterrain.cpp.

References Gui::addButton(), State::device, Terrain::getCenter(), Terrain::getCollisionTriangles(), Debug::log(), State::name, Flock::setAlignmentWeight(), Flock::setCohesionWeight(), Roller::setCollisionTriangles(), Flock::setNeighborRadius(), Object::setScale(), Flock::setScale(), Flock::setSeekTargetWeight(), Flock::setSeparationWeight(), Flock::setTarget(), Flock::setTornadoWeight(), and Gui::setVisible().

void StateTerrain::exit void   )  [virtual]
 

See also:
State::exit()

Implements State.

Definition at line 194 of file stateterrain.cpp.

References State::device, Debug::log(), and State::name.

bool StateTerrain::OnEvent irr::SEvent  event  )  [virtual]
 

See also:
State::OnEvent()
Parameters:
event : A user event (mouse, keyboard, GUI, ...)

Implements State.

void StateTerrain::render irr::u32  deltaTime  )  [virtual]
 

See also:
State::render()
Parameters:
deltaTime : A unsigned integer representing milliseconds since last call.

Implements State.


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