Still won't work
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 20 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 Aug 19 2022 16:39:02 by 1.7.2