map
[Device proxies]
Detailed Description
The map proxy provides an interface to a map.
Classes | |
struct | playerc_map_t |
Defines | |
#define | PLAYERC_MAP_INDEX(dev, i, j) ((dev->width) * (j) + (i)) |
Functions | |
playerc_map_t * | playerc_map_create (playerc_client_t *client, int index) |
void | playerc_map_destroy (playerc_map_t *device) |
int | playerc_map_subscribe (playerc_map_t *device, int access) |
int | playerc_map_unsubscribe (playerc_map_t *device) |
int | playerc_map_get_map (playerc_map_t *device) |
int | playerc_map_get_vector (playerc_map_t *device) |
Define Documentation
#define PLAYERC_MAP_INDEX | ( | dev, | |||
i, | |||||
j | ) | ((dev->width) * (j) + (i)) |
Convert from a cell position to a map index.
Function Documentation
playerc_map_t* playerc_map_create | ( | playerc_client_t * | client, | |
int | index | |||
) |
Create a map proxy.
void playerc_map_destroy | ( | playerc_map_t * | device | ) |
Destroy a map proxy.
int playerc_map_get_map | ( | playerc_map_t * | device | ) |
Get the map, which is stored in the proxy.
int playerc_map_get_vector | ( | playerc_map_t * | device | ) |
Get the vector map, which is stored in the proxy.
int playerc_map_subscribe | ( | playerc_map_t * | device, | |
int | access | |||
) |
Subscribe to the map device.
int playerc_map_unsubscribe | ( | playerc_map_t * | device | ) |
Un-subscribe from the map device.