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

Method draw

include/DTL/Cuboid/Rectangular.hpp:51–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49
50 template<typename Matrix_>
51 bool draw(Matrix_& matrix_) const {
52 for ( ::dtl::type::size z{ this->start_z }, max_z{ this->getLoopMaxValue(this->start_z , this->size_z , matrix_.size()) }; z < max_z; ++z)
53 for ( ::dtl::type::size y{ this->start_y }, max_y{ this->getLoopMaxValue(this->start_y , this->size_y , matrix_[z].size()) }; y < max_y; ++y)
54 for ( ::dtl::type::size x{ this->start_x }, max_x{ this->getLoopMaxValue(this->start_x , this->size_x , matrix_[z][y].size()) }; x < max_x; ++x)
55 matrix_[z][y][x] = this->draw_value;
56 return true;
57 }
58 template<typename Matrix_>
59 bool draw(Matrix_& matrix_, const ::dtl::type::size size_x_, const ::dtl::type::size size_y_, const ::dtl::type::size size_z_) const {
60 const ::dtl::type::size max_x{ this->getLoopMaxValue(this->start_x , this->size_x , size_x_) };

Callers

nothing calls this directly

Calls 1

getLoopMaxValueMethod · 0.95

Tested by

no test coverage detected