| 80 | } |
| 81 | |
| 82 | float CDistanceFunction::ffGetValue() |
| 83 | { |
| 84 | if (ef_storage().non_alife().member()) |
| 85 | return (ef_storage().non_alife().member()->Position().distance_to(ef_storage().non_alife().enemy()->Position())); |
| 86 | else |
| 87 | return (ef_storage().alife().member()->base()->Position().distance_to(ef_storage().alife().enemy()->base()->Position())); |
| 88 | } |
| 89 | |
| 90 | float CPersonalHealthFunction::ffGetValue() |
| 91 | { |
no test coverage detected