aboutsummaryrefslogtreecommitdiff
path: root/BlueTileBehavior.h
blob: a01b50d866db5d20158a0fc6cfd2ea5d7c53811d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include "TileBehaviorStrategy.h"

class BlueTileBehavior : public TileBehaviorStrategy {
public:
	virtual void step(Artist &);
	virtual void update(Tile &);
	virtual std::unique_ptr<TileBehaviorStrategy> clone(Museum &);

	static constexpr const char * type = "B";

private:
	using TileBehaviorStrategy::TileBehaviorStrategy;
	static BlueTileBehavior instance;
	BlueTileBehavior() = default;

private:
	virtual void update_neighbor(Tile *);
	int dx = 0;
	int dy = 0;
};