map
[Device proxies]
Collaboration diagram for map:
Detailed Description
The map proxy provides an interface to a map.
Classes | |
struct | playerc_map_t |
Map proxy data. More... | |
Defines | |
#define | PLAYERC_MAP_INDEX(dev, i, j) ((dev->width) * (j) + (i)) |
Convert from a cell position to a map index. | |
Functions | |
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_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. | |
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. |