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

Method addColor

src/game/DynamicColor.cpp:107–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105
106
107int DynamicColorManager::addColor(DynamicColor* color) {
108 active.insert(color);
109 colors.push_back(color);
110 return ((int)colors.size() - 1);
111}
112
113
114int DynamicColorManager::findColor(const std::string& name) const {

Callers 3

writeToManagerMethod · 0.80
AddDynamicColorMethod · 0.80
getLinkMaterialMethod · 0.80

Calls 3

insertMethod · 0.45
push_backMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected