blob: 3e671bc8af1ff3e40efc4c4ed401169d02c719c3 (
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<TileBehaviorStrategy> NullTileBehavior::clone(Museum & museum) {
auto instance = new NullTileBehavior();
instance->museum = &museum;
return unique_ptr<TileBehaviorStrategy>(instance);
}
|