get the name of an object type */
| 405 | get the name of an object type |
| 406 | */ |
| 407 | const char *GetObjectTypeName (SHORT objtype) |
| 408 | { |
| 409 | switch (objtype) |
| 410 | { |
| 411 | case OBJ_THINGS: |
| 412 | return "Thing"; |
| 413 | case OBJ_LINEDEFS: |
| 414 | return "LineDef"; |
| 415 | case OBJ_SIDEDEFS: |
| 416 | return "SideDef"; |
| 417 | case OBJ_VERTEXES: |
| 418 | return "Vertex"; |
| 419 | case OBJ_SEGS: |
| 420 | return "Segment"; |
| 421 | case OBJ_SSECTORS: |
| 422 | return "SSector"; |
| 423 | case OBJ_NODES: |
| 424 | return "Node"; |
| 425 | case OBJ_SECTORS: |
| 426 | return "Sector"; |
| 427 | case OBJ_REJECT: |
| 428 | return "Reject"; |
| 429 | case OBJ_BLOCKMAP: |
| 430 | return "Blockmap"; |
| 431 | } |
| 432 | return "< Bug! >"; |
| 433 | } |
| 434 | |
| 435 | /* |
| 436 | get the name of an object type (plurial) |
no outgoing calls
no test coverage detected