| 273 | } |
| 274 | |
| 275 | void PathManager::transmitPath(const U32 id) |
| 276 | { |
| 277 | AssertFatal(mIsServer, "Error, cannot call transmitNewPath on client path manager!"); |
| 278 | |
| 279 | // Post to all active clients that have already received their paths... |
| 280 | // |
| 281 | SimGroup* pClientGroup = Sim::getClientGroup(); |
| 282 | for (SimGroup::iterator itr = pClientGroup->begin(); itr != pClientGroup->end(); itr++) { |
| 283 | NetConnection* nc = dynamic_cast<NetConnection*>(*itr); |
| 284 | if (nc && nc->missionPathsSent()) |
| 285 | { |
| 286 | // Transmit the updated path... |
| 287 | PathManagerEvent* event = new PathManagerEvent; |
| 288 | event->modifiedPath = id; |
| 289 | event->clearPaths = false; |
| 290 | event->path = *(mPaths[id]); |
| 291 | nc->postNetEvent(event); |
| 292 | } |
| 293 | } |
| 294 | } |
| 295 | |
| 296 | void PathManager::getPathPosition(const U32 id, |
| 297 | const F64 msPosition, |
nothing calls this directly
no test coverage detected