44 struct older_than :
public std::unary_function<const Sound&, bool> {
double time
Definition: sound.h:46
Sound(double time, const Pos &pos, float intensity, float frequency, void *sender)
Definition: sound.cpp:34
void * sender
pointer to the sender (can be used for self detection)
Definition: sound.h:54
float intensity
intensity 0..1
Definition: sound.h:52
float frequency
frequency -1..1
Definition: sound.h:53
void createVisual(GlobalData &globalData, double visualSize, Pos visualOffset) const
Definition: sound.cpp:43
double time
Definition: sound.h:50
bool operator()(const Sound &s)
Definition: sound.h:47
~Sound()
Definition: sound.cpp:40
Data structure holding all essential global information.
Definition: globaldata.h:57
Object that represents a sound signal in the simulator.
Definition: sound.h:35
Pos pos
emission position
Definition: sound.h:51
older_than(double time)
Definition: sound.h:45
nice predicate function for finding old sound signals
Definition: sound.h:44