chore: Add course material
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
// ======================================================
|
||||
//
|
||||
// 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
|
||||
Reference in New Issue
Block a user