Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | List of all members
IObstructionTestFilter Class Referenceabstract

Interface for ICmpObstructionManager Test functions to filter out unwanted shapes. More...

#include <ICmpObstructionManager.h>

Inheritance diagram for IObstructionTestFilter:
ControlGroupMovementObstructionFilter NullObstructionFilter SkipControlGroupsRequireFlagObstructionFilter SkipTagObstructionFilter SkipTagRequireControlGroupsAndFlagObstructionFilter SkipTagRequireFlagsObstructionFilter StationaryOnlyObstructionFilter

Public Types

typedef
ICmpObstructionManager::tag_t 
tag_t
 
typedef
ICmpObstructionManager::flags_t 
flags_t
 

Public Member Functions

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

Detailed Description

Interface for ICmpObstructionManager Test functions to filter out unwanted shapes.

Definition at line 284 of file ICmpObstructionManager.h.

Member Typedef Documentation

Definition at line 288 of file ICmpObstructionManager.h.

Definition at line 287 of file ICmpObstructionManager.h.

Constructor & Destructor Documentation

virtual IObstructionTestFilter::~IObstructionTestFilter ( )
inlinevirtual

Definition at line 290 of file ICmpObstructionManager.h.

Member Function Documentation

virtual bool IObstructionTestFilter::TestShape ( tag_t  tag,
flags_t  flags,
entity_id_t  group,
entity_id_t  group2 
) const
pure virtual

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.

Parameters
tagtag of shape being tested
flagsset of EFlags for the shape
groupthe control group of the shape (typically the shape's unit, or the unit's formation controller, or 0)
group2an optional secondary control group of the shape, or INVALID_ENTITY if none specified. Currently exists only for static shapes.

Implemented in SkipTagRequireFlagsObstructionFilter, SkipTagObstructionFilter, SkipTagRequireControlGroupsAndFlagObstructionFilter, ControlGroupMovementObstructionFilter, StationaryOnlyObstructionFilter, and NullObstructionFilter.


The documentation for this class was generated from the following file: