lilith3d::TerrainMorph Class Reference

#include <terrainmorph.h>

Inheritance diagram for lilith3d::TerrainMorph:

lilith3d::ISequence lilith3d::BridgeMorph lilith3d::BuildingMorph lilith3d::FlattenMorph lilith3d::PitMorph lilith3d::VolcanoMorph List of all members.

Detailed Description

The base class for things that change the terrain mesh over time.

Memory Model Like all sequences, TerrainMorphs are "fire and forget". 'new' one up, call any additional initialization methods, and then add it to the engine with Lilith3D::AddSequence(). Don't delete, don't keep the pointer around. The engine can delete it at any time, including during the AddSequence() call.


Public Member Functions

virtual bool DoSequence (TimeClock *timeClock)=0


Member Function Documentation

virtual bool lilith3d::TerrainMorph::DoSequence ( TimeClock timeClock  )  [pure virtual]

Called each tick to change the terrain. The terrain morph must be time based, because the time between calls is influenced by the frame rate.

Returns:
Is complete? Return true if complete, false if this should be called again. The morph will be deleted by Lilith if it is complete.

Implements lilith3d::ISequence.

Implemented in lilith3d::VolcanoMorph, lilith3d::PitMorph, lilith3d::BridgeMorph, lilith3d::FlattenMorph, and lilith3d::BuildingMorph.


The documentation for this class was generated from the following file:
Generated on Fri Mar 23 19:36:28 2007 for Lilith3D by  doxygen 1.5.1-p1