returns true if b should be butchered before a
| 219 | |
| 220 | // returns true if b should be butchered before a |
| 221 | static bool compareKids(df::unit *a, df::unit *b) { |
| 222 | if (isHighPriority(a) != isHighPriority(b)) |
| 223 | return isHighPriority(b); |
| 224 | if (Units::isDomesticated(a) != Units::isDomesticated(b)) |
| 225 | return Units::isDomesticated(a); |
| 226 | return Units::getAge(a, true) > Units::getAge(b, true); |
| 227 | } |
| 228 | |
| 229 | // returns true if b should be butchered before a |
| 230 | static bool compareAdults(df::unit* a, df::unit* b) { |
nothing calls this directly
no test coverage detected