5 #ifndef MERCATOR_TERRAIN_MOD_H
6 #define MERCATOR_TERRAIN_MOD_H
8 #include <Mercator/Effector.h>
10 #include <wfmath/intersect.h>
11 #include <wfmath/ball.h>
27 int addToSegment(
Segment &)
const;
28 void updateToSegment(
Segment &)
const;
29 void removeFromSegment(
Segment &)
const;
35 virtual void apply(
float &point,
int x,
int y)
const = 0;
45 template <
template <
int>
class Shape>
55 virtual bool checkIntersects(
const Segment& s)
const;
57 void setShape(
const Shape<2> & s);
67 template <
template <
int>
class Shape>
80 virtual void apply(
float &point,
int x,
int y)
const;
83 void setShape(
float level,
const Shape<2> & s);
97 template <
template <
int>
class Shape>
111 virtual void apply(
float &point,
int x,
int y)
const;
114 void setShape(
float dist,
const Shape<2> & s);
128 template <
template <
int>
class Shape>
144 virtual void apply(
float &point,
int x,
int y)
const;
147 void setShape(
float level,
float dx,
float dy,
const Shape<2> & s);
165 template <
template <
int>
class Shape>
177 virtual void apply(
float &point,
int x,
int y)
const;
180 void setShape(
float level,
const Shape<2> & s);
192 #endif // MERCATOR_TERRAIN_MOD_H