![]() |
VR-Forces 4.2 Class Documentation
|
Contains the declaration of class DtTaskableSubordinatePredicate, a predicate that tests if an entity is capable of being tasked as a subordinate. More...

Public Member Functions | |
| DtTaskableSubordinatePredicate (bool negate=false) | |
| virtual | ~DtTaskableSubordinatePredicate () |
| destructor | |
| DtTaskableSubordinatePredicate (const DtTaskableSubordinatePredicate &orig) | |
| copy constructor | |
| virtual DtVrfObjectPredicate * | clone () const |
| clone function | |
Public Member Functions inherited from DtCompositePredicate | |
| DtCompositePredicate (bool negate=false) | |
| default constructor | |
| virtual | ~DtCompositePredicate () |
| destructor | |
| DtCompositePredicate (const DtCompositePredicate &orig) | |
| copy constructor | |
| DtCompositePredicate & | operator= (const DtCompositePredicate &orig) |
| assignment operator | |
| virtual void | addPredicate (const DtVrfObjectPredicate &predicate) |
| adds a sub-predicate | |
| virtual void | removePredicate (const DtVrfObjectPredicate &predicate) |
| removes a force type from the set of types to be checked | |
| virtual bool | hasPredicate (const DtVrfObjectPredicate &predicate) const |
| returns true if the predicate is in the predicate list | |
Public Member Functions inherited from DtVrfObjectPredicate | |
| DtVrfObjectPredicate (bool negate=false) | |
| constructor | |
| virtual | ~DtVrfObjectPredicate () |
| destructor | |
| DtVrfObjectPredicate (const DtVrfObjectPredicate &orig) | |
| copy constructor | |
| DtVrfObjectPredicate & | operator= (const DtVrfObjectPredicate &orig) |
| assignment operator | |
| bool | operator== (const DtVrfObjectPredicate &orig) const |
| Equality operators used to compare predicates. | |
| bool | operator!= (const DtVrfObjectPredicate &orig) const |
| virtual bool | negated () const |
| virtual void | setNegate (bool negate) |
| bool | isTrue (const DtVrfObject *vrfObject) |
| This function evaluates the eval function (to be defined in derived classes) given a DtVrfObject and returns the result, negated if indicated. | |
Additional Inherited Members | |
Static Public Member Functions inherited from DtVrfObjectPredicate | |
| static const DtVrfObjectPredicate & | nullPredicate () |
| Returns an instance of a DtNullVrfObjectPredicate. | |
Protected Member Functions inherited from DtCompositePredicate | |
| virtual bool | eval (const DtVrfObject *object) |
| The actual test this predicate performs. | |
| virtual bool | predicateEqual (const DtVrfObjectPredicate &orig) const |
| Used by equality operator used to compare predicates. | |
Protected Attributes inherited from DtCompositePredicate | |
| DtList | myPredicates |
Contains the declaration of class DtTaskableSubordinatePredicate, a predicate that tests if an entity is capable of being tasked as a subordinate.
Instances of DtTaskableSubordinatePredicate are used to determine whether a subordinate is capable of being tasked as part of an aggregate (i.e. it can move and its not independently tasked). It is composed of a DtAbleToMovePredicate and a negated DtIndependentlyTaskedPredicate.
| DtTaskableSubordinatePredicate::DtTaskableSubordinatePredicate | ( | bool | negate = false | ) |
|
virtual |
destructor
| DtTaskableSubordinatePredicate::DtTaskableSubordinatePredicate | ( | const DtTaskableSubordinatePredicate & | orig | ) |
copy constructor
|
virtual |
clone function
Reimplemented from DtCompositePredicate.