diff options
Diffstat (limited to 'YellowTileBehavior.cpp')
-rw-r--r-- | YellowTileBehavior.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/YellowTileBehavior.cpp b/YellowTileBehavior.cpp new file mode 100644 index 0000000..2999229 --- /dev/null +++ b/YellowTileBehavior.cpp @@ -0,0 +1,17 @@ +#include <memory> + +#include "YellowTileBehavior.h" + +using namespace std; + +YellowTileBehavior YellowTileBehavior::instance {"Y"}; + +void YellowTileBehavior::run(Tile &) { + printf("TODO: %s\n", __PRETTY_FUNCTION__); +} + +unique_ptr<TileBehaviorStrategy> YellowTileBehavior::clone() { + auto instance = new YellowTileBehavior(); + return unique_ptr<TileBehaviorStrategy>(instance); +} + |