Eris 1.3.16
|
Handles instances of Mercator::SlopeTerrainMod with arbitrary shapes. More...
#include <TerrainMod_impl.h>
Public Member Functions | |
InnerTerrainModSlope_impl () | |
Ctor. | |
virtual | ~InnerTerrainModSlope_impl () |
Dtor. | |
bool | createInstance (const Atlas::Message::Element &shapeElement, const WFMath::Point< 3 > &pos, const WFMath::Quaternion &orientation, float level, float dx, float dy) |
Tries to create a new instance from the passes in atlas data. | |
virtual Mercator::TerrainMod * | getModifier () |
Protected Attributes | |
Mercator::SlopeTerrainMod < Shape > * | mTerrainMod |
The actual terrain mod instance, owned by this instance. |
Handles instances of Mercator::SlopeTerrainMod with arbitrary shapes.
bool Eris::InnerTerrainModSlope_impl< Shape >::createInstance | ( | const Atlas::Message::Element & | shapeElement, |
const WFMath::Point< 3 > & | pos, | ||
const WFMath::Quaternion & | orientation, | ||
float | level, | ||
float | dx, | ||
float | dy | ||
) |
Tries to create a new instance from the passes in atlas data.
shapeElement | The atlas data containing shape information. |
pos | The position where the mod should be created, in world space. |
level | The level where the slope should be created. |
dx | |
dy |
Referenced by Eris::InnerTerrainModSlope::parseAtlasData().
Mercator::TerrainMod * Eris::InnerTerrainModSlope_impl< Shape >::getModifier | ( | ) | [inline, virtual] |
Gets the modifier which this instance represents.
Implements Eris::InnerTerrainMod_impl.