C_CPP/src/06_POLY/MP/Scene.cpp
Johannes Theiner 65ea034511 06_POLY_MP: Modifikationen durchgefügt
Signed-off-by: Johannes Theiner <j.theiner@live.de>
2018-11-16 14:58:33 +01:00

20 lines
311 B
C++

#include "Scene.h"
#include <vector>
Scene::Scene(std::vector<Shape*> shapes) : shapes(std::move(shapes)) {
}
void Scene::draw() {
ansiConsole.clearScreen();
for(Shape* shape : shapes) {
shape->draw();
}
}
Scene::~Scene() {
for(Shape* shape : shapes) {
delete shape;
}
}