#include <mapcomposite.hpp>
Public Member Functions | |
MapContent (Map *) | |
bool | allocate (Actor *) |
Allocates a unique ID for an actor on this map. | |
void | deallocate (Actor *) |
Deallocates an ID. | |
void | fillRegion (MapRegion &, const Point &, int) const |
Fills a region of zones within the range of a point. | |
void | fillRegion (MapRegion &, const Rectangle &) const |
Fills a region of zones inside a rectangle. | |
MapZone & | getZone (const Point &pos) const |
Gets zone at given position. | |
Public Attributes | |
std::vector< Thing * > | things |
Things (items, characters, monsters, etc) located on the map. | |
ObjectBucket * | buckets [256] |
Buckets of MovingObjects located on the map, referenced by ID. | |
int | last_bucket |
Last bucket acted upon. | |
MapZone * | zones |
Partition of the Objects, depending on their position on the map. | |
unsigned short | mapWidth |
Width with respect to zones. | |
unsigned short | mapHeight |
Height with respect to zones. |
Definition at line 175 of file mapcomposite.hpp.
unsigned short MapContent::mapWidth |
Width with respect to zones.
Definition at line 222 of file mapcomposite.hpp.
Referenced by fillRegion(), getZone(), and MapComposite::update().
unsigned short MapContent::mapHeight |
Height with respect to zones.
Definition at line 223 of file mapcomposite.hpp.
Referenced by fillRegion(), and MapComposite::update().