* Convert the given character to an object class. If the character is not * recognized, then MAXOCLASSES is returned. Used in detect.c, drawing.c, * invent.c, o_init.c, objnam.c, options.c, pickup.c, sp_lev.c, and * windows.c. */
| 88 | * windows.c. |
| 89 | */ |
| 90 | int |
| 91 | def_char_to_objclass(char ch) |
| 92 | { |
| 93 | int i; |
| 94 | |
| 95 | for (i = 1; i < MAXOCLASSES; i++) |
| 96 | if (ch == def_oc_syms[i].sym) |
| 97 | break; |
| 98 | return i; |
| 99 | } |
| 100 | |
| 101 | /* |
| 102 | * Convert a character into a monster class. This returns the _first_ |
no outgoing calls
no test coverage detected