Jazz2::Editor::TerrainCoverageView class

Shows which of the 47 ways the cells around can be solid have tiles to choose from.

Each pattern is drawn as its 3x3 cells, green with a rule of the current terrain, gray with tiles learned from the levels only, and red with neither, where the smart tools have to make do with something else. A pattern of the layer being edited, the sprite layer or the others, as the tools choose by it.

Constructors, destructors, conversion operators

TerrainCoverageView(IEditorContext& session) explicit

Public functions

auto Measure(const Context& context, Vector2f available) -> Vector2f override
void Update(float timeMult) override
void Draw(Painter& painter) override
auto GetMissingCount() const -> std::int32_t
Returns the number of patterns without any tile to choose.