chore: Add course material
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// ======================================================
|
||||
// ConsolePole.cpp
|
||||
// ======================================================
|
||||
|
||||
#include "ConsolePoleVisitor.h"
|
||||
#include "Light.h"
|
||||
#include "Pole.h"
|
||||
#include "Screen.h"
|
||||
|
||||
void ConsolePoleVisitor::update(const Hint &h) { MyPole.accept(*this); }
|
||||
|
||||
ConsolePoleVisitor::ConsolePoleVisitor(Pole &p) : MyPole(p) { MyPole.accept(*this); }
|
||||
|
||||
void ConsolePoleVisitor::visit(Light &l) { Screen::write(l.getString(), l.getX(), l.getY(), l.getColor()); }
|
||||
Reference in New Issue
Block a user