MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / GetDisplayName

Method GetDisplayName

Source/Objects/object.cpp:495–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493}
494
495void Object::GetDisplayName(char *buf, int buf_size) {
496 if (GetName().empty()) {
497 FormatString(buf, buf_size, "%d, Object from %s", GetID(), CStringFromEntityType(GetType()));
498 } else {
499 FormatString(buf, buf_size, "%s, Object from %s", GetName().c_str(), CStringFromEntityType(GetType()));
500 }
501}
502
503int Object::GetGroupDepth() {
504 if (parent == NULL) {

Callers

nothing calls this directly

Calls 5

FormatStringFunction · 0.85
CStringFromEntityTypeFunction · 0.85
GetTypeFunction · 0.85
emptyMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected