From fe8f7273f0efdfe319a0d3e3b2fc2847992745af Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Mon, 21 Oct 2024 14:02:34 +0200 Subject: fix more design --- StepTileBehavior.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'StepTileBehavior.cpp') diff --git a/StepTileBehavior.cpp b/StepTileBehavior.cpp index 2023bb8..ff1217e 100644 --- a/StepTileBehavior.cpp +++ b/StepTileBehavior.cpp @@ -1,21 +1,11 @@ -#include - #include "StepTileBehavior.h" #include "DeleteArtistTileBehavior.h" #include "Tile.h" using namespace std; -StepTileBehavior StepTileBehavior::instance { StepTileBehavior::type }; - void StepTileBehavior::update(Tile & tile) { if (this->interactions < 3) return; tile.set_type(DeleteArtistTileBehavior::type); } -unique_ptr StepTileBehavior::clone(Museum & museum) { - auto instance = new StepTileBehavior(); - instance->museum = &museum; - return unique_ptr(instance); -} - -- cgit v1.2.3