MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / getVariables

Method getVariables

src/game/PhysicsDriver.cpp:168–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166
167
168void PhysicsDriverManager::getVariables(std::set<std::string>& vars) const {
169 DriverVec::const_iterator it;
170 for (it = drivers.begin(); it != drivers.end(); it++) {
171 PhysicsDriver* driver = *it;
172 if (!driver->linearVar.empty()) { vars.insert(driver->linearVar); }
173 if (!driver->angularVar.empty()) { vars.insert(driver->angularVar); }
174 if (!driver->radialVar.empty()) { vars.insert(driver->radialVar); }
175 if (!driver->slideVar.empty()) { vars.insert(driver->slideVar); }
176 if (!driver->deathVar.empty()) { vars.insert(driver->deathVar); }
177 }
178}
179
180
181int PhysicsDriverManager::packSize() const {

Callers

nothing calls this directly

Calls 4

beginMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected