Zone

A simple object that contains information about a collision.

Summary
ZoneA simple object that contains information about a collision.
Member Variables
materialIDOne of the C_MATERIAL_TYPE_CONSTANTS describing what the collision was with, or C_MATERIAL_TYPE_NONE if no collision was made.
entityIDIf an Entity was hit, this his ID, otherwise will be <C_ENTITY_NONE>.
vPosWhen using Map::GetCollisionByRay it is the exact point of collision, in other cases it may be the Entity/TilePic’s position.
boundingRectUsually is the local rectangle of the collision box of the thing we hit.

Member Variables

materialID

One of the C_MATERIAL_TYPE_CONSTANTS describing what the collision was with, or C_MATERIAL_TYPE_NONE if no collision was made.

entityID

If an Entity was hit, this his ID, otherwise will be <C_ENTITY_NONE>.

vPos

When using Map::GetCollisionByRay it is the exact point of collision, in other cases it may be the Entity/TilePic’s position.

boundingRect

Usually is the local rectangle of the collision box of the thing we hit.

Means invalid material.
The Entity object.
TilePics are the simplest form of visual.