26 lines
427 B
C++
26 lines
427 B
C++
// ======================================================
|
|
//
|
|
// Observer to make the crossing beep when traffic
|
|
// lights are red
|
|
//
|
|
// ======================================================
|
|
|
|
#ifndef BEEPER_H
|
|
#define BEEPER_H
|
|
|
|
#include "Observer.h"
|
|
|
|
class Pelican;
|
|
|
|
class Beeper : public Observer {
|
|
public:
|
|
Beeper(Pelican &pel);
|
|
|
|
void update();
|
|
|
|
private:
|
|
Pelican &myPelican;
|
|
};
|
|
|
|
#endif
|