| 318 | float density() { return float(num_tiles) / num_unmined; } |
| 319 | |
| 320 | void set_parent(Ptr pp) { |
| 321 | if (parent) |
| 322 | parent->add_tiles(-num_tiles); |
| 323 | parent = pp; |
| 324 | if (parent) |
| 325 | parent->add_tiles(num_tiles); |
| 326 | |
| 327 | parent_depth = (pp ? pp->parent_depth+1 : 0); |
| 328 | } |
| 329 | |
| 330 | int parent_mat() { |
| 331 | return parent ? parent->vein.first : SMC_LAYER; |
no test coverage detected