MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / GetDebugName

Method GetDebugName

engine/Poseidon/World/Scene/Object.cpp:182–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182RString Object::GetDebugName() const
183{
184 char nameS[128];
185 if (GetShape())
186 {
187 GetFilename(nameS, GetShape()->Name());
188 }
189 else
190 {
191 snprintf(nameS, sizeof(nameS), "%s", (const char*)"<no shape>");
192 }
193 char buf[256];
194 if (ID() < 0)
195 {
196 snprintf(buf, sizeof(buf), "NOID %s", nameS);
197 }
198 else
199 {
200 snprintf(buf, sizeof(buf), "%d: %s", ID(), nameS);
201 }
202 return buf;
203}
204
205bool Object::IsAnimated(int level) const
206{

Callers 15

SwitchPlayerToMethod · 0.45
GetViewerListMethod · 0.45
MoveOutAndDeleteMethod · 0.45
AddMethod · 0.45
InsertMethod · 0.45
DeleteMethod · 0.45
RemoveMethod · 0.45
SwitchCameraToMethod · 0.45
DeleteAnyVehicleMethod · 0.45
RemoveAnyVehicleMethod · 0.45
VisibilityMethod · 0.45
AddVehicleMethod · 0.45

Calls 4

GetFilenameFunction · 0.85
IDFunction · 0.85
GetShapeFunction · 0.70
NameMethod · 0.45

Tested by

no test coverage detected