HexObstacle

Name

HexObstacle -- A HexObject which blocks entry by a HexWalker

Synopsis


#include <hexmap.h>



struct      HexObstacle;
struct      HexObstacleClass;


HexObstacle* hex_obstacle_new               (HexData *image,
                                             HexDirection enter_from);

Object Hierarchy


  GObject
   +----HexTile
         +----HexObject
               +----HexObstacle

Description

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.

Details

struct HexObstacle

struct HexObstacle;

A hex which blocks entry by a HexWalker


struct HexObstacleClass

struct HexObstacleClass;

The class structure for HexObstacle


hex_obstacle_new ()

HexObstacle* hex_obstacle_new               (HexData *image,
                                             HexDirection enter_from);

create a new HexObstacle

image :

a HexData

enter_from :

the directions from which it is permissible to enter the obstacle

Returns :

the new HexObstacle