chore: Add course material
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#include "Beeper.h"
|
||||
#include "Pelican.h"
|
||||
#include <iostream>
|
||||
|
||||
Beeper::Beeper(Pelican &pel) : myPelican(pel) { myPelican.attach(*this); }
|
||||
|
||||
void Beeper::update() {
|
||||
if (myPelican.getState() == Pelican::RED_STATE) {
|
||||
std::cout << "BEEP!\n";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user