Hexmap Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
#include <hexmap.h> struct HexObstacle; struct HexObstacleClass; HexObstacle* hex_obstacle_new (HexData *image, HexDirection enter_from); |
A HexObstacle is an example of a derived class of HexObject. It blocks entry by a HexWalker from one or more directions. It is useful for making walls, one way doors, and similar things.
HexObstacle* hex_obstacle_new (HexData *image, HexDirection enter_from); |
create a new HexObstacle
a HexData
the directions from which it is permissible to enter the obstacle
the new HexObstacle