aboutsummaryrefslogtreecommitdiff
path: root/NullTileBehavior.cpp
blob: 64bf622c2705fe13584b5deb041051d7015c003d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <memory>

#include "NullTileBehavior.h"

using namespace std;

NullTileBehavior NullTileBehavior::instance {""};

void NullTileBehavior::update(Tile &) { }

unique_ptr<TileBehaviorStrategy> NullTileBehavior::clone(Museum & museum) {
	auto instance = new NullTileBehavior();
	instance->museum = &museum;
	return unique_ptr<TileBehaviorStrategy>(instance);
}