Function levelwater
#include <macawlevel.h>int levelwater(
int level,
int i,
double *x0,
double *z0,
double *x1,
double *z1,
double *y
);
Gives where one of the table's water surfaces is: the top of a water brush (a shaped one gives the box round it).
Parameters
levelint- The level.
iint- Which water, from 0.
x0double *- The address of a
doublefor its smallest x, or NULL. z0double *- The address of a
doublefor its smallest z, or NULL. x1double *- The address of a
doublefor its largest x, or NULL. z1double *- The address of a
doublefor its largest z, or NULL. ydouble *- The address of a
doublefor its height (the brush's top), or NULL.
Returns int
1 if there's an i'th water, or 0 if not.
In What's in a level, with levelstart, levellightcount, levellight, levelwatercount, levelprobecount, levelprobe.