* Executes a movement cycle for the moving target. */
| 186 | * Executes a movement cycle for the moving target. |
| 187 | */ |
| 188 | void MovingTarget::move() |
| 189 | { |
| 190 | calculateSpeed(); |
| 191 | if (_dest != 0) |
| 192 | { |
| 193 | if (getDistance(_dest) > _speedRadian) |
| 194 | { |
| 195 | setLongitude(_lon + _speedLon); |
| 196 | setLatitude(_lat + _speedLat); |
| 197 | } |
| 198 | else |
| 199 | { |
| 200 | setLongitude(_dest->getLongitude()); |
| 201 | setLatitude(_dest->getLatitude()); |
| 202 | } |
| 203 | } |
| 204 | } |
| 205 | |
| 206 | } |
nothing calls this directly
no test coverage detected