| 1638 | } |
| 1639 | |
| 1640 | void SceneGraph::SendScriptMessageToAllObjects(std::string& msg) { |
| 1641 | // For consistency, I'm going to also make this a simple loop in case the same iterator problems affect |
| 1642 | // This function as well. |
| 1643 | for (unsigned int i = 0; i < objects_.size(); i++) { |
| 1644 | Object* obj = objects_[i]; |
| 1645 | if (obj) { |
| 1646 | obj->ReceiveObjectMessage(OBJECT_MSG::SCRIPT, &msg); |
| 1647 | } else { |
| 1648 | LOGE << "One of the objects is NULL when trying to SendScriptMessageToAllObjects." << std::endl; |
| 1649 | } |
| 1650 | } |
| 1651 | } |
| 1652 | |
| 1653 | std::vector<MovementObject*> SceneGraph::GetControlledMovementObjects() { |
| 1654 | std::vector<MovementObject*> controlled_objects; |
no test coverage detected