Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed wave_player 4DGL-uLCD-SE MMA8452
MapItem Struct Reference
The data for elements in the map. More...
#include <map.h>
Data Fields | |
int | type |
Indicates the "type" of the MapItem: WALL, DOOR, PLANT, etc. | |
DrawFunc | draw |
A function pointer to the drawing function for this item. | |
int | walkable |
If zero, this item should block character motion. | |
void * | data |
Arbitrary extra data for the MapItem. |
Detailed Description
The data for elements in the map.
Each item in the map HashTable is a MapItem.
Definition at line 24 of file map.h.
Field Documentation
void* data |
Arbitrary extra data for the MapItem.
Could be useful for keeping up with special information, like where a set of stairs should take the player.
Iterpretation of this can depend on the type of the MapItem. For example, a WALL probably doesn't need to use this (it can be NULL), where an NPC might use it to store game state (have I given the player the key yet?).
DrawFunc draw |
int type |
Generated on Fri Jul 15 2022 03:29:10 by
