| 90 | BlockBrush(){}; |
| 91 | ~BlockBrush(){}; |
| 92 | coord_vec points(MapExtras::MapCache & mc, DFHack::DFCoord start) |
| 93 | { |
| 94 | coord_vec v; |
| 95 | DFHack::DFCoord blockc = start / 16; |
| 96 | DFHack::DFCoord iterc = blockc * 16; |
| 97 | if( !mc.testCoord(start) ) |
| 98 | return v; |
| 99 | auto starty = iterc.y; |
| 100 | for(int xi = 0; xi < 16; xi++) |
| 101 | { |
| 102 | for(int yi = 0; yi < 16; yi++) |
| 103 | { |
| 104 | v.push_back(iterc); |
| 105 | iterc.y++; |
| 106 | } |
| 107 | iterc.y = starty; |
| 108 | iterc.x ++; |
| 109 | } |
| 110 | return v; |
| 111 | }; |
| 112 | std::string str() const { |
| 113 | return "block"; |
| 114 | } |
no outgoing calls
no test coverage detected