9 explicit Tile(int fg = -1, int bg = -1)
13 bool HasFG() const { return fg >= 0; }
14 int GetFG() const { return fg; }
15 bool MatchesFG(const Tile &other) const { return fg == other.fg; }
17 bool HasBG() const { return bg >= 0; }
18 int GetBG() const { return bg; }
19 bool MatchesBG(const Tile &other) const { return bg == other.bg; }
21 bool IsSolid() const { return HasFG(); }