30 #ifndef ERIS_TERRAINMOD_H
31 #define ERIS_TERRAINMOD_H
33 #include <Atlas/Message/Element.h>
35 #include <wfmath/point.h>
51 template <
template <
int>
class Shape>
52 bool parseStuff(
const WFMath::Point<3> & pos,
53 const WFMath::Quaternion & orientation,
54 const Atlas::Message::MapType& modElement,
55 const std::string & typeName,
57 const Atlas::Message::Element & shapeElement);
61 bool parseData(
const WFMath::Point<3> & pos,
62 const WFMath::Quaternion &,
63 const Atlas::Message::MapType &);
76 static float parsePosition(
const WFMath::Point<3> & pos,
const Atlas::Message::MapType& modElement);
78 template <
template <
int>
class Shape>
79 static bool parseShape(
const Atlas::Message::Element& shapeElement,
80 const WFMath::Point<3>& pos,
81 const WFMath::Quaternion& orientation,
84 template <
template <
template <
int>
class Shape>
class Mod,
85 template <int> class Shape>
86 bool createInstance(Shape<2> & shape,
87 const WFMath::Point<3>& pos,
88 const Atlas::Message::MapType &,
92 template <
template <
template <
int>
class Shape>
class Mod,
93 template <int> class Shape>
94 bool createInstance(Shape<2> & shape,
95 const WFMath::Point<3>& pos,
96 const Atlas::Message::MapType &);
98 Mercator::TerrainMod * m_mod;
Mercator::TerrainMod * getModifier()
Accessor for the Mercator::TerrainMod created and held by this instance.
Definition: TerrainModTranslator.cpp:128
TerrainModTranslator()
Ctor.
Definition: TerrainModTranslator.cpp:47
Definition: TerrainModObserver.h:36
Definition: Account.cpp:35
static float parsePosition(const WFMath::Point< 3 > &pos, const Atlas::Message::MapType &modElement)
Parses the changes to the position of the mod If no height data is given the height of the entity the...
Definition: TerrainModTranslator.cpp:144
bool parseData(const WFMath::Point< 3 > &pos, const WFMath::Quaternion &, const Atlas::Message::MapType &)
Parse the Atlas data and create the terrain mod instance with it.
Definition: TerrainModTranslator.cpp:91
Base class for all terrain mod specific classes.This is not meant to be used directly by anything els...
Definition: TerrainModTranslator.h:48