Pyrogenesis trunk
|
Obstruction test filter that will test only against shapes that: More...
#include <ICmpObstructionManager.h>
Public Member Functions | |
SkipControlGroupsRequireFlagObstructionFilter (bool exclude, entity_id_t group1, entity_id_t group2, flags_t mask) | |
SkipControlGroupsRequireFlagObstructionFilter (entity_id_t group1, entity_id_t group2, flags_t mask) | |
virtual bool | TestShape (tag_t tag, flags_t flags, entity_id_t group, entity_id_t group2) const |
Return true if the shape with the specified parameters should be tested for collisions. More... | |
Public Member Functions inherited from IObstructionTestFilter | |
virtual | ~IObstructionTestFilter () |
virtual bool | TestShape (tag_t tag, flags_t flags, entity_id_t group, entity_id_t group2) const =0 |
Return true if the shape with the specified parameters should be tested for collisions. More... | |
Private Member Functions | |
void | Init () |
Private Attributes | |
bool | m_Exclude |
entity_id_t | m_Group |
entity_id_t | m_Group2 |
flags_t | m_Mask |
Additional Inherited Members | |
Public Types inherited from IObstructionTestFilter | |
typedef ICmpObstructionManager::tag_t | tag_t |
typedef ICmpObstructionManager::flags_t | flags_t |
Obstruction test filter that will test only against shapes that:
The first (primary) control group to reject shapes from must be specified and valid. The secondary control group to reject entities from may be set to INVALID_ENTITY to not use it.
This filter is useful to e.g. allow foundations within the same control group to be placed and constructed arbitrarily close together (e.g. for wall pieces that need to link up tightly).
|
inline |
|
inline |
|
inlineprivate |
|
inlinevirtual |
Return true if the shape with the specified parameters should be tested for collisions.
This is called for all shapes that would collide, and also for some that wouldn't.
tag | tag of shape being tested |
flags | set of EFlags for the shape |
group | the control group of the shape (typically the shape's unit, or the unit's formation controller, or 0) |
group2 | an optional secondary control group of the shape, or INVALID_ENTITY if none specified. Currently exists only for static shapes. |
Implements IObstructionTestFilter.
|
private |
|
private |
|
private |
|
private |