Typedef TCOD_line_listener_t

Typedef Documentation

typedef bool (*TCOD_line_listener_t)(int x, int y)

A callback to be passed to TCOD_line.

The points given to the callback include both the starting and ending positions.

Param x

Param y

Return

As long as this callback returns true it will be called with the next x,y point on the line.