MCPcopy Create free account
hub / github.com/AsPJT/DungeonTemplateLibrary / drawArray

Method drawArray

include/DTL/Console/OutputString.hpp:175–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173 //Array
174 template<typename Matrix_>
175 bool drawArray(const Matrix_ & matrix_, const Index_Size end_x_, const Index_Size end_y_, const Index_Size max_x_) const noexcept {
176 for (Index_Size row{ this->start_y }; row < end_y_; ++row) {
177 for (Index_Size col{ this->start_x }; col < end_x_; ++col) {
178 if (this->outputArray(matrix_, col, row, max_x_) >= this->string_vector.DTL_TYPE_VSIZE()) continue;
179 DTL_TYPE_COUT << this->string_vector[this->outputArray(matrix_, col, row, max_x_)];
180 }
181 DTL_TYPE_COUT << '\n';
182 }
183 DTL_TYPE_COUT_END
184 return true;
185 }
186
187 //List
188 template<typename Matrix_>

Callers 1

OutputStringClass · 0.95

Calls 1

outputArrayMethod · 0.45

Tested by

no test coverage detected