34 #ifndef __ENKI_SBOTOBJECT_H 35 #define __ENKI_SBOTOBJECT_H 74 virtual void finalize(
double dt);
98 void setSoundRange(
double soundRange);
SbotFeeding feeding
The interaction.
Definition: SbotObject.h:83
Header of sound emitter interaction.
Color activeColor
The color of the object when active: (actualTime % (activeDuration+inactiveDuration) < activeDuration...
Definition: SbotObject.h:60
bool consumeEnergy
If true, energy given to the Sbots is removed from actualEnergy.
Definition: SbotObject.h:64
double actualTime
The actual time.
Definition: SbotObject.h:54
A situated object in the world with mass, geometry properties, physical properties, ...
Definition: PhysicalEngine.h:131
double inactiveDuration
The duration of inactive period.
Definition: SbotObject.h:58
SbotFeeding(double r, Robot *owner)
Constructor, r is the radius of the interaction.
Definition: SbotObject.cpp:45
double activeDuration
The duration of active period.
Definition: SbotObject.h:56
Enki is the namespace of the Enki simulator. All Enki functions and classes excepted the math one are...
Definition: BluetoothBase.cpp:44
double r
Radius of the local interaction.
Definition: Interaction.h:57
Robot * owner
The physical object that owns the interaction.
Definition: Interaction.h:62
The interfaces for the interactions.
double dEnergyActive
The energy difference per second when active.
Definition: SbotObject.h:66
double dEnergyInactive
The energy difference per second when inactive.
Definition: SbotObject.h:68
Color inactiveColor
The color of the object when inactive: (actualTime % (activeDuration+inactiveDuration) >= activeDurat...
Definition: SbotObject.h:62
The world is the container of all objects and robots.
Definition: PhysicalEngine.h:411
SbotActiveSoundObject give or remove energy to nearby Sbots through an SbotFeeding interaction...
Definition: SbotObject.h:92
ActiveSoundObject can be inherited by any robot that want to emit sound.
Definition: ActiveSoundSource.h:86
A color in RGBA.
Definition: Types.h:55
Interacts with another object or wall only up to a certain distance.
Definition: Interaction.h:53
SbotActiveObject give or remove energy to nearby Sbots through an SbotFeeding interaction.
Definition: SbotObject.h:79
Feeding interaction gives or remove energy to nearby Sbots.
Definition: SbotObject.h:48
A robot is a PhysicalObject that has additional interactions and a controller.
Definition: PhysicalEngine.h:379
double actualEnergy
The energy in stock.
Definition: SbotObject.h:52