MCPcopy Create free account
hub / github.com/Warzone2100/warzone2100 / objTypeToStr

Function objTypeToStr

src/objmem.cpp:108–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108static const char* objTypeToStr(OBJECT_TYPE type)
109{
110 switch (type)
111 {
112 case OBJ_DROID: return "droid";
113 case OBJ_STRUCTURE: return "struct";
114 case OBJ_FEATURE: return "feat";
115 case OBJ_PROJECTILE: return "proj";
116 default: return "object";
117 }
118 return "object";
119}
120
121static const char* getObjDebugDescriptiveName(const BASE_OBJECT *psObj)
122{

Callers 2

_checkStructReferencesFunction · 0.85
_checkDroidReferencesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected