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

#include <PartitionManager.h>

Inherits PartitionFilter.

Public Types

enum  RelationshipAllowTypes { ALLOW_ALLIES = (1<<ALLIES) , ALLOW_ENEMIES = (1<<ENEMIES) , ALLOW_NEUTRAL = (1<<NEUTRAL) }
 

Public Member Functions

 PartitionFilterRelationship (const Object *obj, Int flags)
 
virtual Bool allow (Object *objOther)
 

Detailed Description

Reject any objects that don't match the alliance affiliations compared with 'm_obj'. You may reject objects that are allied, neutral, or enemy with respect to it.

Definition at line 656 of file PartitionManager.h.

Member Enumeration Documentation

◆ RelationshipAllowTypes

Enumerator
ALLOW_ALLIES 

allow objects that m_obj considers allies

ALLOW_ENEMIES 

allow objects that m_obj considers enemy

ALLOW_NEUTRAL 

allow objects that m_obj considers neutral

Definition at line 662 of file PartitionManager.h.

Constructor & Destructor Documentation

◆ PartitionFilterRelationship()

PartitionFilterRelationship::PartitionFilterRelationship ( const Object * obj,
Int flags )
inline

Definition at line 668 of file PartitionManager.h.

Member Function Documentation

◆ allow()

Bool PartitionFilterRelationship::allow ( Object * objOther)
virtual

Implements PartitionFilter.

Definition at line 5230 of file PartitionManager.cpp.


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