mercator
0.4.0
A terrain generation library for the Worldforge system.
|
Device which effects a change in the terrain. More...
#include <Effector.h>
Classes | |
struct | Context |
Public Member Functions | |
Context * | context () const |
void | setContext (std::unique_ptr< Context > context) |
const WFMath::AxisBox< 2 > & | bbox () const |
Accessor for the bounding box of the geometric shape. More... | |
virtual bool | checkIntersects (const Segment &s) const =0 |
Protected Member Functions | |
Effector () | |
Constructor. More... | |
Effector (const Effector &) | |
Copy constructor. More... | |
Effector & | operator= (const Effector &) |
Assignment. More... | |
Protected Attributes | |
WFMath::AxisBox< 2 > | m_box |
The bounding box of the geometric shape. More... | |
std::unique_ptr< Context > | m_context |
The application context of this effector. More... | |
Device which effects a change in the terrain.
Classes which inherit from this interface change the terrain in some way within the region given by the box member. The exact shape of the area affected and the nature of the change depends on the subclass.
Definition at line 25 of file Effector.h.
|
protecteddefault |
Constructor.
|
protected |
Copy constructor.
Definition at line 20 of file Effector.cpp.
|
inline |
Accessor for the bounding box of the geometric shape.
Definition at line 37 of file Effector.h.
References m_box.
Referenced by Mercator::Forest::populate().
|
protected |
The bounding box of the geometric shape.
Definition at line 57 of file Effector.h.
Referenced by bbox(), Mercator::Area::contains(), operator=(), Mercator::Area::setShape(), and Mercator::ShapeTerrainMod< Shape >::ShapeTerrainMod().
|
protected |
The application context of this effector.
Definition at line 60 of file Effector.h.
Referenced by operator=().