lilith3d::BuildingMorph Class Reference

#include <terrainmorph.h>

Inheritance diagram for lilith3d::BuildingMorph:

lilith3d::TerrainMorph lilith3d::ISequence List of all members.

Detailed Description

Flattens up a section of the world - and then puts a building there.


Public Member Functions

 BuildingMorph (int x, int y, float height, const StaticResource *buildingResource)
 Construct a building morph.
void SetTime (U32 timeInMSec)
virtual bool DoSequence (TimeClock *timeClock)


Member Function Documentation

void lilith3d::BuildingMorph::SetTime ( U32  timeInMSec  ) 

Buildings morphs normally take 1 second to complete (1000ms). You can change this to any amount of time by calling this function.

virtual bool lilith3d::BuildingMorph::DoSequence ( TimeClock timeClock  )  [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::TerrainMorph.


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