MCPcopy Create free account
hub / github.com/NetHack/NetHack / validgend

Function validgend

src/role.c:843–850  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

841}
842
843boolean
844validgend(int rolenum, int racenum, int gendnum)
845{
846 /* Assumes validrole and validrace */
847 return (boolean) (gendnum >= 0 && gendnum < ROLE_GENDERS
848 && (roles[rolenum].allow & races[racenum].allow
849 & genders[gendnum].allow & ROLE_GENDMASK));
850}
851
852int
853randgend(int rolenum, int racenum)

Callers 15

populate_rolesMethod · 0.85
RandomizeMethod · 0.85
setupOthersMethod · 0.85
mswin_player_selectionFunction · 0.85
curses_choose_characterFunction · 0.85
winmisc.cFile · 0.85
amii_player_selectionFunction · 0.85
role_initFunction · 0.85
genl_player_setupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected