#include <GAttractAgent.h>
Inheritance diagram for GBE::GAttractAgent:


Public Slots | |
| virtual void | receiveInfluence (const GCS::GElementInfluence &influence) |
| virtual void | initFactor (double factor) |
Public Member Functions | |
| GAttractAgent () | |
| virtual | ~GAttractAgent () |
Adds the following xml data to the element data:
<dynamics><attractionfactor>double value</attractionfactor></dynamics>
| GBE::GAttractAgent::GAttractAgent | ( | ) |
Constructor
| GBE::GAttractAgent::~GAttractAgent | ( | ) | [virtual] |
Virtual destructor for subclassing.
| void GBE::GAttractAgent::initFactor | ( | double | factor | ) | [virtual, slot] |
Initializes given attraction factor value in element data.
| factor | acceleration factor towards an influence source |
| void GBE::GAttractAgent::receiveInfluence | ( | const GCS::GElementInfluence & | influence | ) | [virtual, slot] |
Reimplements GAgent::receiveInfluence(). Acceleration towards the source of the influence is implemented here. The attraction force also depends on how much alike the influence energy level and the own energy level are.
1.4.7