#include "Beeper.h" #include "Pelican.h" #include Beeper::Beeper(Pelican &pel) : myPelican(pel) { myPelican.attach(*this); } void Beeper::update() { if (myPelican.getState() == Pelican::RED_STATE) { std::cout << "BEEP!\n"; } }