klips/cpp/patterns/prototype/prototype.cpp
Shaun Reed 51bf18980b Rename source file in prototype pattern
+ Correct CMakeLists.txt in abstract-factory pattern
+ Commit name change for author of figlet fonts :)
2021-05-21 12:34:18 -04:00

9 lines
161 B
C++

#include "prototype.hpp"
PrototypeFactory::PrototypeFactory()
{
prototypes[Types::GEAR] = new Gear(1.5f);
prototypes[Types::SPRING] = new Spring(2.25f);
}