add basic input handling for klotski board/graph + populate graph based on klotski moves

This commit is contained in:
2026-02-17 15:12:32 +01:00
parent 9d0afffb57
commit 8d5a6a827c
6 changed files with 255 additions and 56 deletions

View File

@ -42,7 +42,8 @@ private:
auto Rotate(const Vector3 &a, const float cos_angle, const float sin_angle)
-> Vector3;
auto Translate(const Vector3 &a, const float distance) -> Vector3;
auto Translate(const Vector3 &a, const float distance, const float horizontal,
const float vertical) -> Vector3;
auto Project(const Vector3 &a) -> Vector2;
@ -51,12 +52,14 @@ private:
public:
auto Transform(Edge2Set &edges, Vertex2Set &vertices,
const MassSpringSystem &mass_springs, const float angle,
const float distance) -> void;
const float distance, const float horizontal,
const float vertical) -> void;
auto DrawMassSprings(const Edge2Set &edges, const Vertex2Set &vertices)
-> void;
auto DrawKlotski(State &state) -> void;
auto DrawKlotski(State &state, int hov_x, int hov_y, int sel_x, int sel_y)
-> void;
auto DrawTextures() -> void;
};