Macaw OS C reference

Function levelprobe

#include <macawlevel.h>
int levelprobe(int level, int i, double *x, double *y, double *z);

Gives where one of the table's probes is.

Parameters

levelint
The level.
iint
Which probe, from 0.
xdouble *
The address of a double for its x, or NULL.
ydouble *
The address of a double for its y, or NULL.
zdouble *
The address of a double for its z, or NULL.

Returns int

1 if there's an i'th probe, or 0 if not.

In What's in a level, with levelstart, levellightcount, levellight, levelwatercount, levelwater, levelprobecount.