Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
PartitionContactList Class Reference

Public Member Functions

 PartitionContactList ()
 
 ~PartitionContactList ()
 
void addToContactList (PartitionData *obj, PartitionData *other)
 
void processContactList ()
 
void resetContactList ()
 
void removeSpecificPartitionData (PartitionData *data)
 

Detailed Description

Definition at line 998 of file PartitionManager.cpp.

Constructor & Destructor Documentation

◆ PartitionContactList()

PartitionContactList::PartitionContactList ( )
inline

Definition at line 1018 of file PartitionManager.cpp.

◆ ~PartitionContactList()

PartitionContactList::~PartitionContactList ( )
inline

Definition at line 1024 of file PartitionManager.cpp.

Member Function Documentation

◆ addToContactList()

void PartitionContactList::addToContactList ( PartitionData * obj,
PartitionData * other )

add a pair of objects to the contact list. If the pair is already present (in either this order or reverse order), nothing is done. Note that it is OK for other==null (this indicates a collisions with the ground) but it is not OK for obj==null.

Definition at line 2365 of file PartitionManager.cpp.

◆ processContactList()

void PartitionContactList::processContactList ( )

process all pairs in the contact list: first, determine if they truly collide, based on their geometry. if so, call the collide actions for each object in the pair.

Definition at line 2482 of file PartitionManager.cpp.

◆ removeSpecificPartitionData()

void PartitionContactList::removeSpecificPartitionData ( PartitionData * data)

remove any contacts that refer to the given data.

Definition at line 2454 of file PartitionManager.cpp.

◆ resetContactList()

void PartitionContactList::resetContactList ( )

discard the contents of the contact list.

Definition at line 2467 of file PartitionManager.cpp.


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