aboutsummaryrefslogtreecommitdiff
path: root/NullTileBehavior.cpp
blob: 7a056a4a8ecbed6e5dadc09f68f65cb0c4149b63 (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 { NullTileBehavior::type };

void NullTileBehavior::update(Tile &) { }

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