| 180 | } |
| 181 | |
| 182 | RString 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 | |
| 205 | bool Object::IsAnimated(int level) const |
| 206 | { |
no test coverage detected