diff options
author | HampusM <hampus@hampusmat.com> | 2022-03-06 13:16:05 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:54 +0200 |
commit | 0e40bc7ce8c3b3be083002f88c3317d65f6570ad (patch) | |
tree | 2fcc470a0f1ce1d51ff26c53c8a9a890b3f31b3b /src/engine/graphics/string_matrix.hpp | |
parent | f4d812a5b9131e65bb55db7211dc68fc453792df (diff) |
refactor: make vector2 & bounds data classes
Diffstat (limited to 'src/engine/graphics/string_matrix.hpp')
-rw-r--r-- | src/engine/graphics/string_matrix.hpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/engine/graphics/string_matrix.hpp b/src/engine/graphics/string_matrix.hpp index 662ea7b..351053e 100644 --- a/src/engine/graphics/string_matrix.hpp +++ b/src/engine/graphics/string_matrix.hpp @@ -1,8 +1,9 @@ #pragma once -#include "interfaces/bounds.hpp" #include "interfaces/matrix.hpp" -#include "interfaces/vector2.hpp" + +#include "engine/data/bounds.hpp" +#include "engine/data/vector2.hpp" #include <string_view> #include <vector> @@ -18,7 +19,7 @@ public: * * @param bounds The bounds of the matrix */ - explicit StringMatrix(const IBounds &bounds); + explicit StringMatrix(const Bounds &bounds); /** * Fills the matrix with a element. @@ -32,7 +33,7 @@ public: * * @param pos The position of a element */ - [[nodiscard]] std::string_view get(const IVector2 &pos) const override; + [[nodiscard]] std::string_view get(const Vector2 &pos) const override; /** * Sets a element of the matrix. @@ -40,7 +41,7 @@ public: * @param pos The position of a element * @param element A new element */ - void set(const IVector2 &pos, std::string_view element) override; + void set(const Vector2 &pos, std::string_view element) override; /** * Returns the number of rows the matrix has. |