MapContent Struct Reference

Entities on a map. More...

#include <mapcomposite.hpp>

List of all members.

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.
MapZonegetZone (const Point &pos) const
 Gets zone at given position.

Public Attributes

std::vector< Thing * > things
 Things (items, characters, monsters, etc) located on the map.
ObjectBucketbuckets [256]
 Buckets of MovingObjects located on the map, referenced by ID.
int last_bucket
 Last bucket acted upon.
MapZonezones
 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.


Detailed Description

Entities on a map.

Definition at line 175 of file mapcomposite.hpp.


Member Data Documentation

Last bucket acted upon.

Definition at line 215 of file mapcomposite.hpp.

Referenced by allocate().

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().


The documentation for this struct was generated from the following files:

Generated on Sun Apr 26 17:30:46 2009 for TMW Server Collection by  doxygen 1.5.5