File src/role.c

Table of all roles


Included Files


Global Variable roles

const struct Role roles[]
Visible in:  src/allmain.c
   src/apply.c
   src/artifact.c
   src/attrib.c
   src/ball.c
   src/bones.c
   src/botl.c
   src/cmd.c
   src/dbridge.c
   src/decl.c
   src/detect.c
   src/dig.c
   src/display.c
   src/do.c
   src/do_name.c
   src/do_wear.c
   src/dog.c
   src/dogmove.c
   src/dokick.c
   src/dothrow.c
   src/drawing.c
   src/dungeon.c
   src/eat.c
   src/end.c
   src/engrave.c
   src/exper.c
   src/explode.c
   src/extralev.c
   src/files.c
   src/fountain.c
   src/hack.c
   src/hacklib.c
   src/invent.c
   src/light.c
   src/lock.c
   src/mail.c
   src/makemon.c
   src/mcastu.c
   src/mhitm.c
   src/mhitu.c
   src/minion.c
   src/mklev.c
   src/mkmap.c
   src/mkmaze.c
   src/mkobj.c
   src/mkroom.c
   src/mon.c
   src/mondata.c
   src/monmove.c
   src/mplayer.c
   src/mthrowu.c
   src/muse.c
   src/music.c
   src/o_init.c
   src/objnam.c
   src/options.c
   src/pager.c
   src/pickup.c
   src/pline.c
   src/polyself.c
   src/potion.c
   src/pray.c
   src/priest.c
   src/quest.c
   src/questpgr.c
   src/read.c
   src/rect.c
   src/region.c
   src/restore.c
   src/rip.c
   src/rnd.c
   src/role.c
Used in: get_compopt_value()src/options.c
  halu_gname()src/pray.c
  ok_align()src/role.c
  ok_gend()src/role.c
  ok_race()src/role.c
  ok_role()src/role.c
  pick_role()src/role.c
  randalign()src/role.c
  randgend()src/role.c
  randrace()src/role.c
  randrole()src/role.c
  rank_of()src/botl.c
  role_init()src/role.c
  str2role()src/role.c
  title_to_mon()src/botl.c
  validalign()src/role.c
  validgend()src/role.c
  validrace()src/role.c
  validrole()src/role.c

Global Variable urole

struct Role urole
Visible in:  src/allmain.c
   src/apply.c
   src/artifact.c
   src/attrib.c
   src/ball.c
   src/bones.c
   src/botl.c
   src/cmd.c
   src/dbridge.c
   src/decl.c
   src/detect.c
   src/dig.c
   src/display.c
   src/do.c
   src/do_name.c
   src/do_wear.c
   src/dog.c
   src/dogmove.c
   src/dokick.c
   src/dothrow.c
   src/drawing.c
   src/dungeon.c
   src/eat.c
   src/end.c
   src/engrave.c
   src/exper.c
   src/explode.c
   src/extralev.c
   src/files.c
   src/fountain.c
   src/hack.c
   src/hacklib.c
   src/invent.c
   src/light.c
   src/lock.c
   src/mail.c
   src/makemon.c
   src/mcastu.c
   src/mhitm.c
   src/mhitu.c
   src/minion.c
   src/mklev.c
   src/mkmap.c
   src/mkmaze.c
   src/mkobj.c
   src/mkroom.c
   src/mon.c
   src/mondata.c
   src/monmove.c
   src/mplayer.c
   src/mthrowu.c
   src/muse.c
   src/music.c
   src/o_init.c
   src/objnam.c
   src/options.c
   src/pager.c
   src/pickup.c
   src/pline.c
   src/polyself.c
   src/potion.c
   src/pray.c
   src/priest.c
   src/quest.c
   src/questpgr.c
   src/read.c
   src/rect.c
   src/region.c
   src/restore.c
   src/rip.c
   src/rnd.c
   src/role.c
Used in: Goodbye()src/role.c
  Hello()src/role.c
  Helmet_off()src/do_wear.c
  Helmet_on()src/do_wear.c
  adjabil()src/attrib.c
  align_gname()src/pray.c
  align_gtitle()src/pray.c
  arti_invoke()src/artifact.c
  change_sex()src/polyself.c
  choke()src/eat.c
  convert_arg()src/questpgr.c
  cprefx()src/eat.c
  dig_up_grave()src/dig.c
  do_class_genocide()src/read.c
  do_genocide()src/read.c
  dokick()src/dokick.c
  doname()src/objnam.c
  done()src/end.c
  doturn()src/pray.c
  enermod()src/exper.c
  explode()src/explode.c
  fixup_special()src/mkmaze.c
  fprefx()src/eat.c
  goto_level()src/do.c
  guardname()src/questpgr.c
  hack_artifacts()src/artifact.c
  hitmu()src/mhitu.c
  homebase()src/questpgr.c
  init_attr()src/attrib.c
  init_dungeons()src/dungeon.c
  intermed()src/questpgr.c
  is_quest_artifact()src/questpgr.c
  its_dead()src/apply.c
  kick_monster()src/dokick.c
  kick_object()src/dokick.c
  kickdmg()src/dokick.c
  ldrname()src/questpgr.c
  leaderless()src/questpgr.c
  load_qtlist()src/questpgr.c
  losexp()src/exper.c
  makedog()src/dog.c
  makelevel()src/mklev.c
  max_rank_sz()src/botl.c
  maybe_wail()src/hack.c
  mergable()src/invent.c
  minimal_enlightenment()src/cmd.c
  mk_artifact()src/artifact.c
  mksobj()src/mkobj.c
  more_experienced()src/exper.c
  moveloop()src/allmain.c
  mplayer_talk()src/mplayer.c
  mreadmsg()src/muse.c
  neminame()src/questpgr.c
  newhp()src/attrib.c
  newuhs()src/eat.c
  obj_typename()src/objnam.c
  peffects()src/potion.c
  pet_type()src/dog.c
  pick_lock()src/lock.c
  pleased()src/pray.c
  pluslvl()src/exper.c
  polyman()src/polyself.c
  potionbreathe()src/potion.c
  qt_montype()src/questpgr.c
  quest_info()src/questpgr.c
  rank()src/botl.c
  rank_of()src/botl.c
  role_init()src/role.c
  seffects()src/read.c
  set_bonesfile_name()src/files.c
  thitmonst()src/dothrow.c
  throw_obj()src/dothrow.c
  throwit()src/dothrow.c
  touch_artifact()src/artifact.c
  use_whip()src/apply.c
  violated_vegetarian()src/eat.c
  welcome()src/allmain.c
  xname()src/objnam.c

Global Variable races

const struct Race races[]
Visible in:  src/allmain.c
   src/apply.c
   src/artifact.c
   src/attrib.c
   src/ball.c
   src/bones.c
   src/botl.c
   src/cmd.c
   src/dbridge.c
   src/decl.c
   src/detect.c
   src/dig.c
   src/display.c
   src/do.c
   src/do_name.c
   src/do_wear.c
   src/dog.c
   src/dogmove.c
   src/dokick.c
   src/dothrow.c
   src/drawing.c
   src/dungeon.c
   src/eat.c
   src/end.c
   src/engrave.c
   src/exper.c
   src/explode.c
   src/extralev.c
   src/files.c
   src/fountain.c
   src/hack.c
   src/hacklib.c
   src/invent.c
   src/light.c
   src/lock.c
   src/mail.c
   src/makemon.c
   src/mcastu.c
   src/mhitm.c
   src/mhitu.c
   src/minion.c
   src/mklev.c
   src/mkmap.c
   src/mkmaze.c
   src/mkobj.c
   src/mkroom.c
   src/mon.c
   src/mondata.c
   src/monmove.c
   src/mplayer.c
   src/mthrowu.c
   src/muse.c
   src/music.c
   src/o_init.c
   src/objnam.c
   src/options.c
   src/pager.c
   src/pickup.c
   src/pline.c
   src/polyself.c
   src/potion.c
   src/pray.c
   src/priest.c
   src/quest.c
   src/questpgr.c
   src/read.c
   src/rect.c
   src/region.c
   src/restore.c
   src/rip.c
   src/rnd.c
   src/role.c
Used in: get_compopt_value()src/options.c
  ok_align()src/role.c
  ok_gend()src/role.c
  ok_race()src/role.c
  ok_role()src/role.c
  pick_race()src/role.c
  randalign()src/role.c
  randgend()src/role.c
  randrace()src/role.c
  role_init()src/role.c
  str2race()src/role.c
  validalign()src/role.c
  validgend()src/role.c
  validrace()src/role.c

Global Variable urace

struct Race urace
Visible in:  src/allmain.c
   src/apply.c
   src/artifact.c
   src/attrib.c
   src/ball.c
   src/bones.c
   src/botl.c
   src/cmd.c
   src/dbridge.c
   src/decl.c
   src/detect.c
   src/dig.c
   src/display.c
   src/do.c
   src/do_name.c
   src/do_wear.c
   src/dog.c
   src/dogmove.c
   src/dokick.c
   src/dothrow.c
   src/drawing.c
   src/dungeon.c
   src/eat.c
   src/end.c
   src/engrave.c
   src/exper.c
   src/explode.c
   src/extralev.c
   src/files.c
   src/fountain.c
   src/hack.c
   src/hacklib.c
   src/invent.c
   src/light.c
   src/lock.c
   src/mail.c
   src/makemon.c
   src/mcastu.c
   src/mhitm.c
   src/mhitu.c
   src/minion.c
   src/mklev.c
   src/mkmap.c
   src/mkmaze.c
   src/mkobj.c
   src/mkroom.c
   src/mon.c
   src/mondata.c
   src/monmove.c
   src/mplayer.c
   src/mthrowu.c
   src/muse.c
   src/music.c
   src/o_init.c
   src/objnam.c
   src/options.c
   src/pager.c
   src/pickup.c
   src/pline.c
   src/polyself.c
   src/potion.c
   src/pray.c
   src/priest.c
   src/quest.c
   src/questpgr.c
   src/read.c
   src/rect.c
   src/region.c
   src/restore.c
   src/rip.c
   src/rnd.c
   src/role.c
Used in: adjabil()src/attrib.c
  adjattrib()src/attrib.c
  cpostfx()src/eat.c
  cprefx()src/eat.c
  dig()src/dig.c
  do_class_genocide()src/read.c
  do_genocide()src/read.c
  done_in_by()src/end.c
  dosacrifice()src/pray.c
  fprefx()src/eat.c
  hitmu()src/mhitu.c
  init_attr()src/attrib.c
  lookat()src/pager.c
  losexp()src/exper.c
  makemon()src/makemon.c
  maybe_wail()src/hack.c
  minimal_enlightenment()src/cmd.c
  mk_artifact()src/artifact.c
  newhp()src/attrib.c
  newman()src/polyself.c
  newuhs()src/eat.c
  peace_minded()src/makemon.c
  pluslvl()src/exper.c
  polyman()src/polyself.c
  polyself()src/polyself.c
  redist_attr()src/attrib.c
  rehumanize()src/polyself.c
  role_init()src/role.c
  spec_applies()src/artifact.c
  thitmonst()src/dothrow.c
  throw_obj()src/dothrow.c
  touch_artifact()src/artifact.c
  welcome()src/allmain.c

Global Variable genders

const struct Gender genders[]
Visible in:  src/allmain.c
   src/apply.c
   src/artifact.c
   src/attrib.c
   src/ball.c
   src/bones.c
   src/botl.c
   src/cmd.c
   src/dbridge.c
   src/decl.c
   src/detect.c
   src/dig.c
   src/display.c
   src/do.c
   src/do_name.c
   src/do_wear.c
   src/dog.c
   src/dogmove.c
   src/dokick.c
   src/dothrow.c
   src/drawing.c
   src/dungeon.c
   src/eat.c
   src/end.c
   src/engrave.c
   src/exper.c
   src/explode.c
   src/extralev.c
   src/files.c
   src/fountain.c
   src/hack.c
   src/hacklib.c
   src/invent.c
   src/light.c
   src/lock.c
   src/mail.c
   src/makemon.c
   src/mcastu.c
   src/mhitm.c
   src/mhitu.c
   src/minion.c
   src/mklev.c
   src/mkmap.c
   src/mkmaze.c
   src/mkobj.c
   src/mkroom.c
   src/mon.c
   src/mondata.c
   src/monmove.c
   src/mplayer.c
   src/mthrowu.c
   src/muse.c
   src/music.c
   src/o_init.c
   src/objnam.c
   src/options.c
   src/pager.c
   src/pickup.c
   src/pline.c
   src/polyself.c
   src/potion.c
   src/pray.c
   src/priest.c
   src/quest.c
   src/questpgr.c
   src/read.c
   src/rect.c
   src/region.c
   src/restore.c
   src/rip.c
   src/rnd.c
   src/role.c
Used in: get_compopt_value()src/options.c
  minimal_enlightenment()src/cmd.c
  ok_gend()src/role.c
  ok_race()src/role.c
  ok_role()src/role.c
  randgend()src/role.c
  str2gend()src/role.c
  validgend()src/role.c
  welcome()src/allmain.c

Global Variable aligns

const struct Align aligns[]
Visible in:  src/allmain.c
   src/apply.c
   src/artifact.c
   src/attrib.c
   src/ball.c
   src/bones.c
   src/botl.c
   src/cmd.c
   src/dbridge.c
   src/decl.c
   src/detect.c
   src/dig.c
   src/display.c
   src/do.c
   src/do_name.c
   src/do_wear.c
   src/dog.c
   src/dogmove.c
   src/dokick.c
   src/dothrow.c
   src/drawing.c
   src/dungeon.c
   src/eat.c
   src/end.c
   src/engrave.c
   src/exper.c
   src/explode.c
   src/extralev.c
   src/files.c
   src/fountain.c
   src/hack.c
   src/hacklib.c
   src/invent.c
   src/light.c
   src/lock.c
   src/mail.c
   src/makemon.c
   src/mcastu.c
   src/mhitm.c
   src/mhitu.c
   src/minion.c
   src/mklev.c
   src/mkmap.c
   src/mkmaze.c
   src/mkobj.c
   src/mkroom.c
   src/mon.c
   src/mondata.c
   src/monmove.c
   src/mplayer.c
   src/mthrowu.c
   src/muse.c
   src/music.c
   src/o_init.c
   src/objnam.c
   src/options.c
   src/pager.c
   src/pickup.c
   src/pline.c
   src/polyself.c
   src/potion.c
   src/pray.c
   src/priest.c
   src/quest.c
   src/questpgr.c
   src/read.c
   src/rect.c
   src/region.c
   src/restore.c
   src/rip.c
   src/rnd.c
   src/role.c
Used in: get_compopt_value()src/options.c
  hack_artifacts()src/artifact.c
  newhp()src/attrib.c
  ok_align()src/role.c
  ok_race()src/role.c
  ok_role()src/role.c
  randalign()src/role.c
  role_init()src/role.c
  str2align()src/role.c
  validalign()src/role.c

Local Variables

randomstr
static char randomstr[]
Used in: str2align()
  str2gend()
  str2race()
  str2role()

Global Function Goodbye()

const char* Goodbye ( void )
Prototyped in: include/extern.h
Called by: done()src/end.c
  losexp()src/exper.c
References Variables: urolesrc/role.c

Global Function Hello()

const char* Hello ( struct monst* mtmp )
Prototyped in: include/extern.h
Called by: check_special_room()src/hack.c
  welcome()src/allmain.c
References Variables: monssrc/monst.c
  urolesrc/role.c

Global Function ok_align()

boolean ok_align ( int rolenum, int racenum, int gendnum, int alignnum )
Prototyped in: include/extern.h
Called by: pick_align()src/role.c
References Variables: alignssrc/role.c
  racessrc/role.c
  rolessrc/role.c

Global Function ok_gend()

boolean ok_gend ( int rolenum, int racenum, int gendnum, int alignnum )
Prototyped in: include/extern.h
Called by: pick_gend()src/role.c
References Variables: genderssrc/role.c
  racessrc/role.c
  rolessrc/role.c

Global Function ok_race()

boolean ok_race ( int rolenum, int racenum, int gendnum, int alignnum )
Prototyped in: include/extern.h
Called by: pick_race()src/role.c
References Variables: alignssrc/role.c
  genderssrc/role.c
  racessrc/role.c
  rolessrc/role.c

Global Function ok_role()

boolean ok_role ( int rolenum, int racenum, int gendnum, int alignnum )
Prototyped in: include/extern.h
Called by: pick_role()src/role.c
References Variables: alignssrc/role.c
  genderssrc/role.c
  racessrc/role.c
  rolessrc/role.c

Global Function pick_align()

int pick_align ( int rolenum, int racenum, int gendnum )
Prototyped in: include/extern.h
Calls: ok_align()src/role.c
  rn2()src/rnd.c

Global Function pick_gend()

int pick_gend ( int rolenum, int racenum, int alignnum )
Prototyped in: include/extern.h
Calls: ok_gend()src/role.c
  rn2()src/rnd.c

Global Function pick_race()

int pick_race ( int rolenum, int gendnum, int alignnum )
Prototyped in: include/extern.h
Calls: ok_race()src/role.c
  rn2()src/rnd.c
References Variables: racessrc/role.c

Global Function pick_role()

int pick_role ( int racenum, int gendnum, int alignnum )
Prototyped in: include/extern.h
Calls: ok_role()src/role.c
  rn2()src/rnd.c
References Variables: rolessrc/role.c

Global Function plnamesuffix()

void plnamesuffix ( void )
Prototyped in: include/extern.h
Calls: plnamesuffix()src/role.c
  str2align()src/role.c
  str2gend()src/role.c
  str2race()src/role.c
  str2role()src/role.c
  strchr()
Called by: parse_config_line()src/files.c
  plnamesuffix()src/role.c
  role_init()src/role.c
References Variables: flagssrc/decl.c
  plnamesrc/decl.c
  windowprocs

Global Function randalign()

int randalign ( int rolenum, int racenum )
Prototyped in: include/extern.h
Calls: rn2()src/rnd.c
Called by: role_init()src/role.c
References Variables: alignssrc/role.c
  racessrc/role.c
  rolessrc/role.c

Global Function randgend()

int randgend ( int rolenum, int racenum )
Prototyped in: include/extern.h
Calls: rn2()src/rnd.c
References Variables: genderssrc/role.c
  racessrc/role.c
  rolessrc/role.c

Global Function randrace()

int randrace ( int rolenum )
Prototyped in: include/extern.h
Calls: rn2()src/rnd.c
Called by: role_init()src/role.c
References Variables: racessrc/role.c
  rolessrc/role.c

Global Function randrole()

int randrole ( void )
Prototyped in: include/extern.h
Calls: rn2()src/rnd.c
Called by: halu_gname()src/pray.c
  role_init()src/role.c
References Variables: rolessrc/role.c

Global Function role_init()

void role_init ( void )
Prototyped in: include/extern.h
Calls: plnamesuffix()src/role.c
  randalign()src/role.c
  randrace()src/role.c
  randrole()src/role.c
  str2role()src/role.c
  validalign()src/role.c
  validgend()src/role.c
  validrace()src/role.c
  validrole()src/role.c
  strcpy()
Called by: newgame()src/allmain.c
  restgamestate()src/restore.c
References Variables: alignssrc/role.c
  flagssrc/decl.c
  monssrc/monst.c
  pl_charactersrc/decl.c
  racessrc/role.c
  rolessrc/role.c
  uracesrc/role.c
  urolesrc/role.c

Global Function str2align()

int str2align ( char* str )
Prototyped in: include/extern.h
Calls: strncmpi()src/hacklib.c
  strlen()
Called by: parseoptions()src/options.c
  plnamesuffix()src/role.c
References Variables: alignssrc/role.c
  randomstrsrc/role.c

Global Function str2gend()

int str2gend ( char* str )
Prototyped in: include/extern.h
Calls: strncmpi()src/hacklib.c
  strlen()
Called by: parseoptions()src/options.c
  plnamesuffix()src/role.c
References Variables: genderssrc/role.c
  randomstrsrc/role.c

Global Function str2race()

int str2race ( char* str )
Prototyped in: include/extern.h
Calls: strncmpi()src/hacklib.c
  strlen()
Called by: parseoptions()src/options.c
  plnamesuffix()src/role.c
References Variables: racessrc/role.c
  randomstrsrc/role.c

Global Function str2role()

int str2role ( char* str )
Prototyped in: include/extern.h
Calls: strncmpi()src/hacklib.c
  strlen()
Called by: parse_config_line()src/files.c
  parseoptions()src/options.c
  plnamesuffix()src/role.c
  role_init()src/role.c
References Variables: randomstrsrc/role.c
  rolessrc/role.c

Global Function validalign()

boolean validalign ( int rolenum, int racenum, int alignnum )
Prototyped in: include/extern.h
Called by: role_init()src/role.c
References Variables: alignssrc/role.c
  racessrc/role.c
  rolessrc/role.c

Global Function validgend()

boolean validgend ( int rolenum, int racenum, int gendnum )
Prototyped in: include/extern.h
Called by: role_init()src/role.c
References Variables: genderssrc/role.c
  racessrc/role.c
  rolessrc/role.c

Global Function validrace()

boolean validrace ( int rolenum, int racenum )
Prototyped in: include/extern.h
Called by: role_init()src/role.c
References Variables: racessrc/role.c
  rolessrc/role.c

Global Function validrole()

boolean validrole ( int rolenum )
Prototyped in: include/extern.h
Called by: role_init()src/role.c
References Variables: rolessrc/role.c