* Convert a character into a monster class. This returns the _first_ * match made. If there are no matches, return MAXMCLASSES. * Used in detect.c, drawing.c, mondata.c, options.c, pickup.c, * sp_lev.c, and windows.c. */
| 105 | * sp_lev.c, and windows.c. |
| 106 | */ |
| 107 | int |
| 108 | def_char_to_monclass(char ch) |
| 109 | { |
| 110 | int i; |
| 111 | |
| 112 | for (i = 1; i < MAXMCLASSES; i++) |
| 113 | if (ch == def_monsyms[i].sym) |
| 114 | break; |
| 115 | return i; |
| 116 | } |
| 117 | |
| 118 | /* does 'ch' represent a furniture character? returns index into defsyms[] */ |
| 119 | int |
no outgoing calls
no test coverage detected