Slave function for restarts
| 130 | } |
| 131 | /// Slave function for restarts |
| 132 | bool slave(const MetaInfo& mi) { |
| 133 | if ((mi.type() == MetaInfo::RESTART) && |
| 134 | (mi.restart() > 0) && (p > 0.0)) { |
| 135 | const Photo& l = static_cast<const Photo&>(*mi.last()); |
| 136 | relax(*this, pos, l.pos, rnd, p); |
| 137 | return false; |
| 138 | } else { |
| 139 | return true; |
| 140 | } |
| 141 | } |
| 142 | /// Constructor for cloning \a s |
| 143 | Photo(Photo& s) : |
| 144 | IntMinimizeScript(s), spec(s.spec), rnd(s.rnd), p(s.p) { |