| 1 | class map { |
| 2 | public: |
| 3 | map() { |
| 4 | char t[8][8] = { |
| 5 | {0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0}, |
| 6 | {0, 0, 0, 0, 1, 1, 1, 0}, {0, 0, 1, 0, 0, 0, 1, 0}, |
| 7 | {0, 0, 1, 0, 0, 0, 1, 0}, {0, 0, 1, 1, 1, 1, 1, 0}, |
| 8 | {0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0} |
| 9 | }; |
| 10 | w = h = 8; |
| 11 | for( int r = 0; r < h; r++ ) |
| 12 | for( int s = 0; s < w; s++ ) |
| 13 | m[s][r] = t[r][s]; |
| 14 | } |
| 15 | int operator() ( int x, int y ) { return m[x][y]; } |
| 16 | char m[8][8]; |
| 17 | int w, h; |
| 18 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected