|
libbio
|
#include <Affinity.h>


Public Types | |
| typedef physical::Attraction< bool >::Force | Strength |
Additional Inherited Members | |
Static Public Member Functions inherited from bio::physical::Class< Affinity > | |
| static Pointer< Affinity > | Convert (Pointer< Wave > wave) |
Static Public Member Functions inherited from bio::physical::Wave | |
| static Properties | GetResonanceBetween (ConstWaves waves) |
| static Properties | GetResonanceBetween (Pointer< const Wave > wave1, Pointer< const Wave > wave2) |
| static Properties | GetResonanceBetween (Pointer< const Wave > wave, const Properties &properties) |
Protected Attributes inherited from bio::physical::Class< Affinity > | |
| Pointer< Affinity > | mObject |
Protected Attributes inherited from bio::physical::Wave | |
| LazyPointer< Symmetry > | mSymmetry |
| bool | mHasSignal |
| uint16_t | mTypeId |
Affinity is simply a base class for further Affinity specification.
They allow you to build a selector that can be compared against Waves later.
Unlike Wave::GetResonanceBetween(), Affinity can be either positive or negative and can change what is being compared.
NOTE: Affinity is in the main bio namespace for ease of use across domains.
Sync the template-specific Attraction Force with our non-specific Affinity Strength.
bool here is simply a dummy value.
| bio::Affinity::Affinity | ( | ) |
Ensure virtual methods point to Class implementations.
|
virtual |
|
virtual |
Abstract; will always return false unless GetStrengthOfAttractionTo is overridden.
| wave | |
| threshold | how high the Affinity::Strength must be to return true. |
|
virtual |
To get the Affinity::Strength of an interaction, we add all Attraction::Forces together.
Here, negative Attractions (i.e. repulsions) will cause the Affinity to be weaker (i.e. smaller) or negative.
"Abstract"; will always return 0 unless overridden.
| wave |
Ease of use wrapper for AttractionExists().
| wave |