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>
35 int addToSegment(
Segment &)
const;
36 void updateToSegment(
Segment &)
const;
37 void removeFromSegment(
Segment &)
const;
48 virtual void apply(
float &point,
int x,
int y)
const = 0;
55 template <
template <
int>
class Shape>
65 virtual bool checkIntersects(
const Segment& s)
const;
67 void setShape(
const Shape<2> & s);
77 template <
template <
int>
class Shape>
90 virtual void apply(
float &point,
int x,
int y)
const;
92 void setShape(
float level,
const Shape<2> & s);
106 template <
template <
int>
class Shape>
120 virtual void apply(
float &point,
int x,
int y)
const;
122 void setShape(
float dist,
const Shape<2> & s);
136 template <
template <
int>
class Shape>
152 virtual void apply(
float &point,
int x,
int y)
const;
154 void setShape(
float level,
float dx,
float dy,
const Shape<2> & s);
172 template <
template <
int>
class Shape>
184 virtual void apply(
float &point,
int x,
int y)
const;
186 void setShape(
float level,
const Shape<2> & s);
198 #endif // MERCATOR_TERRAIN_MOD_H