TileCollisionDetector

Test objects against a tilemap along its edges.

When called, it either tests all or a selected set of objects against the tilemap, then returns 4 lists of the tiles encountered if they haven't been registered to the "exclutedTiles" set.

Constructors

this
this(void delegate(TileCollisionEvent) objectToTileCollision, int contextID, ITileLayer source)
Undocumented in source.

Members

Aliases

ExcludedTileset
alias ExcludedTileset = TreeMap!(wchar, void)
Undocumented in source.

Variables

contextID
int contextID;
Undocumented in source.
excludedTiles
ExcludedTileset excludedTiles;

Contains a set of all excluded tiles (contains 0xffff by default)

objectToTileCollision
void delegate(TileCollisionEvent) objectToTileCollision;

Called upon an object to tile collision event.

objects
ObjectMap objects;

Contains all the objects (collision shapes are not used)

source
ITileLayer source;

Contains a pointer to the source tile layer

Meta