| 38 | } |
| 39 | |
| 40 | void VTorque::setCamera( SceneObjectType *pObject ) |
| 41 | { |
| 42 | // Fetch Game Base. |
| 43 | GameBase *object = dynamic_cast<GameBase*>( pObject ); |
| 44 | |
| 45 | // Fetch Client Group. |
| 46 | SimGroup* clientGroup = Sim::getClientGroup(); |
| 47 | |
| 48 | for ( SimGroup::iterator itr = clientGroup->begin(); itr != clientGroup->end(); itr++ ) |
| 49 | { |
| 50 | GameConnection *connection = dynamic_cast<GameConnection*>( *itr ); |
| 51 | if ( connection ) |
| 52 | { |
| 53 | // Set Camera Object. |
| 54 | connection->setCameraObject( object ); |
| 55 | } |
| 56 | } |
| 57 | } |
nothing calls this directly
no test coverage detected