MCPcopy Index your code
hub / github.com/NetHack/NetHack / opt2roleopt

Function opt2roleopt

src/options.c:714–730  ·  view source on GitHub ↗

role => 0, race => 1, gender => 2, alignment =>3 */

Source from the content-addressed store, hash-verified

712
713/* role => 0, race => 1, gender => 2, alignment =>3 */
714staticfn int
715opt2roleopt(int roleopt)
716{
717 switch (roleopt) {
718 case opt_role:
719 return 0;
720 case opt_race:
721 return 1;
722 case opt_gender:
723 return 2;
724 case opt_alignment:
725 return 3;
726 default:
727 break;
728 }
729 return 0;
730}
731
732/* fetch saved option string for a particular option phase */
733staticfn char *

Callers 3

getoptstrFunction · 0.85
saveoptstrFunction · 0.85
unsaveoptstrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected