blob: d3164209667e3707af6b17340652a08a00cd1ee7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#pragma once
#include "TileBehavior.h"
class SetNeighborTileBehavior : public TileBehavior {
public:
virtual void step(Artist *);
virtual void update(Tile &);
virtual std::unique_ptr<TileBehavior> clone(Museum &);
static constexpr const char * type = "B";
private:
using TileBehavior::TileBehavior;
static SetNeighborTileBehavior instance;
SetNeighborTileBehavior() = default;
private:
int dx = 0;
int dy = 0;
};
|