Changeset 993

Show
Ignore:
Timestamp:
10/01/08 00:53:56 (3 months ago)
Author:
takkaria
Message:

Reorganise some source files. Sorry if this screws things up for anyone; in the long term, this is a much better way for things to be, as things get split out into more files.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/Makefile.inc

    r966 r993  
    1111depgen: 
    1212        head -n 15 Makefile.inc > Makefile.new 
    13         gcc -MM $(BASEOBJS:.o=.c) >> Makefile.new 
     13        gcc -MM -I. $(BASEOBJS:.o=.c) >> Makefile.new 
    1414 
    1515# Dependencies 
    1616attack.o: attack.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    1717  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    18   defines.h option.h types.h ui.h z-type.h object.h externs.h tvalsval.h 
     18  defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
     19  externs.h object/tvalsval.h 
    1920birth.o: birth.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    2021  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    21   option.h types.h ui.h z-type.h object.h externs.h tvalsval.h cmds.h \ 
    22   game-event.h game-cmd.h ui-menu.h 
     22  option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
     23  object/tvalsval.h cmds.h game-event.h game-cmd.h ui-menu.h 
    2324button.o: button.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    2425  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    25   defines.h option.h types.h ui.h z-type.h object.h externs.h 
     26  defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
     27  externs.h 
    2628cave.o: cave.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    2729  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    28   option.h types.h ui.h z-type.h object.h externs.h tvalsval.h \ 
    29   game-event.h 
     30  option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
     31  object/tvalsval.h game-event.h 
    3032cmd0.o: cmd0.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    3133  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    32   option.h types.h ui.h z-type.h object.h externs.h wizard.h cmds.h \ 
    33   ui-menu.h 
     34  option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
     35  wizard.h cmds.h ui-menu.h 
    3436cmd1.o: cmd1.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    3537  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    36   option.h types.h ui.h z-type.h object.h externs.h tvalsval.h cmds.h 
     38  option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
     39  object/tvalsval.h cmds.h 
    3740cmd2.o: cmd2.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    3841  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    39   option.h types.h ui.h z-type.h object.h externs.h tvalsval.h 
     42  option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
     43  object/tvalsval.h 
    4044cmd3.o: cmd3.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    4145  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    42   option.h types.h ui.h z-type.h object.h externs.h tvalsval.h 
     46  option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
     47  object/tvalsval.h 
    4348cmd4.o: cmd4.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    4449  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    45   option.h types.h ui.h z-type.h object.h externs.h tvalsval.h ui-menu.h 
     50  option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
     51  object/tvalsval.h ui-menu.h 
    4652cmd5.o: cmd5.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    4753  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    48   option.h types.h ui.h z-type.h object.h externs.h tvalsval.h 
     54  option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
     55  object/tvalsval.h 
    4956cmd6.o: cmd6.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    5057  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    51   option.h types.h ui.h z-type.h object.h externs.h tvalsval.h cmds.h \ 
    52   effects.h list-effects.h 
     58  option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
     59  object/tvalsval.h cmds.h effects.h list-effects.h 
    5360cmd-obj.o: cmd-obj.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    5461  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    55   defines.h option.h types.h ui.h z-type.h object.h externs.h tvalsval.h \ 
    56   cmds.h 
     62  defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
     63  externs.h object/tvalsval.h cmds.h 
    5764death.o: death.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    5865  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    59   option.h types.h ui.h z-type.h object.h externs.h ui-menu.h cmds.h 
     66  option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
     67  ui-menu.h cmds.h 
    6068debug.o: debug.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    6169  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    62   option.h types.h ui.h z-type.h object.h externs.h debug.h 
     70  option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
     71  debug.h 
    6372dungeon.o: dungeon.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    6473  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    65   defines.h option.h types.h ui.h z-type.h object.h externs.h tvalsval.h \ 
    66   cmds.h game-event.h 
     74  defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
     75  externs.h object/tvalsval.h cmds.h game-event.h 
    6776effects.o: effects.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    6877  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    69   defines.h option.h types.h ui.h z-type.h object.h externs.h effects.h \ 
    70   list-effects.h 
     78  defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
     79  externs.h effects.h list-effects.h 
    7180files.o: files.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    7281  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    73   option.h types.h ui.h z-type.h object.h externs.h tvalsval.h ui-menu.h \ 
    74   cmds.h 
     82  option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
     83  object/tvalsval.h ui-menu.h cmds.h 
    7584game-cmd.o: game-cmd.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    7685  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    77   defines.h option.h types.h ui.h z-type.h object.h externs.h game-cmd.h 
     86  defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
     87  externs.h game-cmd.h 
    7888game-event.o: game-event.c z-virt.h h-basic.h game-event.h 
    7989generate.o: generate.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    8090  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    81   defines.h option.h types.h ui.h z-type.h object.h externs.h 
     91  defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
     92  externs.h 
    8293history.o: history.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    8394  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    84   defines.h option.h types.h ui.h z-type.h object.h externs.h 
     95  defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
     96  externs.h 
    8597init1.o: init1.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    8698  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    87   option.h types.h ui.h z-type.h object.h externs.h tvalsval.h effects.h \ 
    88   list-effects.h init.h 
     99  option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
     100  object/tvalsval.h effects.h list-effects.h init.h 
    89101init2.o: init2.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    90102  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    91   option.h types.h ui.h z-type.h object.h externs.h init.h cmds.h \ 
    92   game-event.h game-cmd.h 
     103  option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
     104  init.h cmds.h game-event.h game-cmd.h 
    93105load.o: load.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    94106  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    95   option.h types.h ui.h z-type.h object.h externs.h tvalsval.h 
    96 melee1.o: melee1.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    97   z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    98   defines.h option.h types.h ui.h z-type.h object.h externs.h tvalsval.h 
    99 melee2.o: melee2.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    100   z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    101   defines.h option.h types.h ui.h z-type.h object.h externs.h bitflag.h \ 
    102   tvalsval.h 
    103 monster1.o: monster1.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    104   z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    105   defines.h option.h types.h ui.h z-type.h object.h externs.h 
    106 monster2.o: monster2.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    107   z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    108   defines.h option.h types.h ui.h z-type.h object.h externs.h 
    109 obj-desc.o: obj-desc.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    110   z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    111   defines.h option.h types.h ui.h z-type.h object.h externs.h tvalsval.h 
    112 obj-info.o: obj-info.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    113   z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    114   defines.h option.h types.h ui.h z-type.h object.h externs.h effects.h \ 
    115   list-effects.h cmds.h tvalsval.h 
    116 obj-make.o: obj-make.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    117   z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    118   defines.h option.h types.h ui.h z-type.h object.h externs.h tvalsval.h 
    119 obj-ui.o: obj-ui.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    120   z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    121   defines.h option.h types.h ui.h z-type.h object.h externs.h tvalsval.h 
    122 obj-util.o: obj-util.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    123   z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    124   defines.h option.h types.h ui.h z-type.h object.h externs.h randname.h \ 
    125   tvalsval.h 
     107  option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
     108  object/tvalsval.h 
     109melee1.o: monster/melee1.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
     110  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
     111  defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
     112  externs.h object/tvalsval.h 
     113melee2.o: monster/melee2.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
     114  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
     115  defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
     116  externs.h bitflag.h object/tvalsval.h 
     117monster1.o: monster/monster1.c angband.h h-basic.h z-file.h z-form.h \ 
     118  z-util.h z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h \ 
     119  config.h defines.h option.h types.h object/types.h monster/types.h ui.h \ 
     120  z-type.h externs.h 
     121monster2.o: monster/monster2.c angband.h h-basic.h z-file.h z-form.h \ 
     122  z-util.h z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h \ 
     123  config.h defines.h option.h types.h object/types.h monster/types.h ui.h \ 
     124  z-type.h externs.h 
     125obj-desc.o: object/obj-desc.c angband.h h-basic.h z-file.h z-form.h \ 
     126  z-util.h z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h \ 
     127  config.h defines.h option.h types.h object/types.h monster/types.h ui.h \ 
     128  z-type.h externs.h object/tvalsval.h 
     129obj-info.o: object/obj-info.c angband.h h-basic.h z-file.h z-form.h \ 
     130  z-util.h z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h \ 
     131  config.h defines.h option.h types.h object/types.h monster/types.h ui.h \ 
     132  z-type.h externs.h effects.h list-effects.h cmds.h object/tvalsval.h 
     133obj-make.o: object/obj-make.c angband.h h-basic.h z-file.h z-form.h \ 
     134  z-util.h z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h \ 
     135  config.h defines.h option.h types.h object/types.h monster/types.h ui.h \ 
     136  z-type.h externs.h object/tvalsval.h 
     137obj-ui.o: object/obj-ui.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
     138  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
     139  defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
     140  externs.h object/tvalsval.h 
     141obj-util.o: object/obj-util.c angband.h h-basic.h z-file.h z-form.h \ 
     142  z-util.h z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h \ 
     143  config.h defines.h option.h types.h object/types.h monster/types.h ui.h \ 
     144  z-type.h externs.h randname.h object/tvalsval.h 
    126145option.o: option.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    127146  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    128   defines.h option.h types.h ui.h z-type.h object.h externs.h 
     147  defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
     148  externs.h 
    129149randart.o: randart.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    130150  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    131   defines.h option.h types.h ui.h z-type.h object.h externs.h tvalsval.h \ 
    132   init.h randname.h 
     151  defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
     152  externs.h object/tvalsval.h init.h randname.h 
    133153randname.o: randname.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    134154  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    135   defines.h option.h types.h ui.h z-type.h object.h externs.h randname.h 
     155  defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
     156  externs.h randname.h 
    136157pathfind.o: pathfind.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    137158  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    138   defines.h option.h types.h ui.h z-type.h object.h externs.h 
     159  defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
     160  externs.h 
    139161score.o: score.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    140162  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    141   option.h types.h ui.h z-type.h object.h externs.h 
     163  option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h 
    142164signals.o: signals.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    143165  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    144   defines.h option.h types.h ui.h z-type.h object.h externs.h 
     166  defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
     167  externs.h 
    145168save.o: save.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    146169  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    147   option.h types.h ui.h z-type.h object.h externs.h 
     170  option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h 
    148171spells1.o: spells1.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    149172  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    150   defines.h option.h types.h ui.h z-type.h object.h externs.h tvalsval.h 
     173  defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
     174  externs.h object/tvalsval.h 
    151175spells2.o: spells2.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    152176  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    153   defines.h option.h types.h ui.h z-type.h object.h externs.h tvalsval.h 
     177  defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
     178  externs.h object/tvalsval.h 
    154179squelch.o: squelch.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    155180  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    156   defines.h option.h types.h ui.h z-type.h object.h externs.h cmds.h \ 
    157   ui-menu.h tvalsval.h 
     181  defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
     182  externs.h cmds.h ui-menu.h object/tvalsval.h 
    158183store.o: store.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    159184  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    160   option.h types.h ui.h z-type.h object.h externs.h cmds.h ui-menu.h \ 
    161   game-event.h tvalsval.h 
     185  option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
     186  cmds.h ui-menu.h game-event.h object/tvalsval.h 
    162187tables.o: tables.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    163188  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    164   defines.h option.h types.h ui.h z-type.h object.h externs.h tvalsval.h 
     189  defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
     190  externs.h object/tvalsval.h 
    165191target.o: target.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    166192  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    167   defines.h option.h types.h ui.h z-type.h object.h externs.h cmds.h 
     193  defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
     194  externs.h cmds.h 
    168195trap.o: trap.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    169196  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    170   option.h types.h ui.h z-type.h object.h externs.h 
     197  option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h 
    171198ui.o: ui.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    172199  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    173   option.h types.h ui.h z-type.h object.h externs.h 
     200  option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h 
    174201ui-birth.o: ui-birth.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    175202  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    176   defines.h option.h types.h ui.h z-type.h object.h externs.h ui-menu.h \ 
    177   game-event.h game-cmd.h 
     203  defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
     204  externs.h ui-menu.h game-event.h game-cmd.h 
    178205ui-event.o: ui-event.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    179206  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    180   defines.h option.h types.h ui.h z-type.h object.h externs.h 
     207  defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
     208  externs.h 
    181209ui-menu.o: ui-menu.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    182210  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    183   defines.h option.h types.h ui.h z-type.h object.h externs.h ui-menu.h 
     211  defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
     212  externs.h ui-menu.h 
    184213util.o: util.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    185214  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    186   option.h types.h ui.h z-type.h object.h externs.h randname.h 
     215  option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
     216  randname.h 
    187217variable.o: variable.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    188218  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    189   defines.h option.h types.h ui.h z-type.h object.h externs.h 
     219  defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
     220  externs.h 
    190221wiz-spoil.o: wiz-spoil.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    191222  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    192   defines.h option.h types.h ui.h z-type.h object.h externs.h cmds.h \ 
    193   tvalsval.h 
     223  defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
     224  externs.h cmds.h object/tvalsval.h 
    194225wiz-stats.o: wiz-stats.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    195226  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    196   defines.h option.h types.h ui.h z-type.h object.h externs.h cmds.h \ 
    197   wizard.h tvalsval.h 
     227  defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
     228  externs.h cmds.h wizard.h object/tvalsval.h 
    198229wizard.o: wizard.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    199230  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    200   defines.h option.h types.h ui.h z-type.h object.h externs.h wizard.h \ 
    201   cmds.h tvalsval.h 
     231  defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
     232  externs.h wizard.h cmds.h object/tvalsval.h 
    202233x-spell.o: x-spell.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    203234  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    204   defines.h option.h types.h ui.h z-type.h object.h externs.h tvalsval.h 
     235  defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
     236  externs.h object/tvalsval.h 
    205237xtra1.o: xtra1.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    206238  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    207   option.h types.h ui.h z-type.h object.h externs.h game-event.h \ 
    208   tvalsval.h 
     239  option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
     240  game-event.h object/tvalsval.h 
    209241xtra2.o: xtra2.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    210242  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    211   option.h types.h ui.h z-type.h object.h externs.h cmds.h tvalsval.h 
     243  option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
     244  cmds.h object/tvalsval.h 
    212245xtra3.o: xtra3.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    213246  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    214   option.h types.h ui.h z-type.h object.h externs.h game-event.h \ 
    215   ui-birth.h tvalsval.h 
     247  option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
     248  game-event.h ui-birth.h object/tvalsval.h 
    216249z-file.o: z-file.c z-file.h h-basic.h z-virt.h z-util.h z-form.h 
    217250z-form.o: z-form.c z-form.h h-basic.h z-type.h z-util.h z-virt.h 
  • trunk/src/Makefile.src

    r966 r993  
    7777        init2.o \ 
    7878        load.o \ 
    79         melee1.o \ 
    80         melee2.o \ 
    81         monster1.o \ 
    82         monster2.o \ 
    83         obj-desc.o \ 
    84         obj-info.o \ 
    85         obj-make.o \ 
    86         obj-ui.o \ 
    87         obj-util.o \ 
     79        monster/melee1.o \ 
     80        monster/melee2.o \ 
     81        monster/monster1.o \ 
     82        monster/monster2.o \ 
     83        object/obj-desc.o \ 
     84        object/obj-info.o \ 
     85        object/obj-make.o \ 
     86        object/obj-ui.o \ 
     87        object/obj-util.o \ 
     88        object/randart.o \ 
    8889        option.o \ 
    89         randart.o \ 
    9090        randname.o \ 
    9191        pathfind.o \ 
  • trunk/src/angband.h

    r918 r993  
    3636#include "option.h" 
    3737#include "types.h" 
     38#include "object/types.h" 
     39#include "object/object.h" 
     40#include "monster/types.h" 
     41#include "store.h" 
     42 
    3843#include "ui.h" 
    3944#include "z-type.h" 
    40 #include "object.h" 
    4145#include "externs.h" 
    4246 
  • trunk/src/attack.c

    r986 r993  
    1717 */ 
    1818#include "angband.h" 
    19 #include "tvalsval.h" 
     19 
     20#include "object/object.h" 
     21#include "object/tvalsval.h" 
    2022 
    2123 
  • trunk/src/birth.c

    r987 r993  
    1717 */ 
    1818#include "angband.h" 
    19 #include "tvalsval.h" 
     19#include "object/tvalsval.h" 
    2020#include "cmds.h" 
    2121#include "game-event.h" 
  • trunk/src/cave.c

    r951 r993  
    1717 */ 
    1818#include "angband.h" 
    19 #include "tvalsval.h" 
     19#include "object/tvalsval.h" 
    2020#include "game-event.h" 
    2121 
     
    37033703 * a given grid, and if a monster can target the player. 
    37043704 */ 
    3705 bool projectable(int y1, int x1, int y2, int x2
     3705bool projectable(int y1, int x1, int y2, int x2, int flg
    37063706{ 
    37073707        int y, x; 
     
    37113711 
    37123712        /* Check the projection path */ 
    3713         grid_n = project_path(grid_g, MAX_RANGE, y1, x1, y2, x2, 0); 
     3713        grid_n = project_path(grid_g, MAX_RANGE, y1, x1, y2, x2, flg); 
    37143714 
    37153715        /* No grid is ever projectable from itself */ 
  • trunk/src/cmd-obj.c

    r918 r993  
    1818 */ 
    1919#include "angband.h" 
    20 #include "tvalsval.h" 
     20#include "object/tvalsval.h" 
    2121#include "cmds.h" 
    2222 
  • trunk/src/cmd1.c

    r918 r993  
    1818 */ 
    1919#include "angband.h" 
    20 #include "tvalsval.h" 
     20#include "object/tvalsval.h" 
    2121#include "cmds.h" 
    2222 
  • trunk/src/cmd2.c

    r938 r993  
    1717 */ 
    1818#include "angband.h" 
    19 #include "tvalsval.h" 
     19#include "object/tvalsval.h" 
    2020 
    2121/* 
  • trunk/src/cmd3.c

    r950 r993  
    1717 */ 
    1818#include "angband.h" 
    19 #include "tvalsval.h" 
     19#include "object/tvalsval.h" 
    2020 
    2121 
  • trunk/src/cmd4.c

    r975 r993  
    1818 */ 
    1919#include "angband.h" 
    20 #include "tvalsval.h" 
     20#include "object/tvalsval.h" 
    2121#include "option.h" 
    2222#include "ui.h" 
  • trunk/src/cmd5.c

    r918 r993  
    1717 */ 
    1818#include "angband.h" 
    19 #include "tvalsval.h" 
     19#include "object/tvalsval.h" 
    2020 
    2121 
  • trunk/src/cmd6.c

    r918 r993  
    1818 */ 
    1919#include "angband.h" 
    20 #include "tvalsval.h" 
     20#include "object/tvalsval.h" 
    2121#include "cmds.h" 
    2222#include "effects.h" 
  • trunk/src/defines.h

    r979 r993  
    946946 * Bit flags for the "project()" function 
    947947 * 
     948 *   NONE: No flags 
    948949 *   JUMP: Jump directly to the target location (this is a hack) 
    949950 *   BEAM: Work as a beam weapon (affect every grid passed through) 
     
    955956 *   HIDE: Hack -- disable "visual" feedback from projection 
    956957 */ 
     958#define PROJECT_NONE    0x00 
    957959#define PROJECT_JUMP    0x01 
    958960#define PROJECT_BEAM    0x02 
  • trunk/src/dungeon.c

    r966 r993  
    1717 */ 
    1818#include "angband.h" 
    19 #include "tvalsval.h" 
     19#include "object/tvalsval.h" 
    2020#include "z-file.h" 
    2121#include "cmds.h" 
  • trunk/src/externs.h

    r966 r993  
    296296extern int project_path(u16b *gp, int range, \ 
    297297                         int y1, int x1, int y2, int x2, int flg); 
    298 extern bool projectable(int y1, int x1, int y2, int x2); 
     298extern bool projectable(int y1, int x1, int y2, int x2, int flg); 
    299299extern void scatter(int *yp, int *xp, int y, int x, int d, int m); 
    300300extern void health_track(int m_idx); 
  • trunk/src/files.c

    r983 r993  
    1717 */ 
    1818#include "angband.h" 
    19 #include "tvalsval.h" 
     19#include "object/tvalsval.h" 
    2020#include "ui-menu.h" 
    2121#include "cmds.h" 
  • trunk/src/init1.c

    r940 r993  
    1717 */ 
    1818#include "angband.h" 
    19 #include "tvalsval.h" 
     19#include "object/tvalsval.h" 
    2020 
    2121 
  • trunk/src/load.c

    r966 r993  
    1717 */ 
    1818#include "angband.h" 
    19 #include "tvalsval.h" 
     19#include "object/tvalsval.h" 
    2020 
    2121 
  • trunk/src/monster/melee1.c

    • Property svn:mergeinfo set
    r918 r993  
    1717 */ 
    1818#include "angband.h" 
    19 #include "tvalsval.h" 
     19#include "object/tvalsval.h" 
    2020 
    2121 
  • trunk/src/monster/melee2.c

    • Property svn:mergeinfo set
    r918 r993  
    1818#include "angband.h" 
    1919#include "bitflag.h" 
    20 #include "tvalsval.h" 
     20#include "object/tvalsval.h" 
     21 
     22 
     23/* 
     24 * Determine if a bolt will arrive, checking that no monsters are in the way 
     25 */ 
     26#define clean_shot(Y1, X1, Y2, X2) \ 
     27        projectable(Y1, X1, Y2, X2, PROJECT_STOP) 
     28 
    2129 
    2230/* 
     
    349357 
    350358        return FALSE; 
    351 } 
    352  
    353  
    354  
    355 /* 
    356  * Determine if a bolt spell will hit the player. 
    357  * 
    358  * This is exactly like "projectable", but it will return FALSE if a monster 
    359  * is in the way. 
    360  * 
    361  * Then we should perhaps instead supply a flag to "projectable()".  XXX XXX 
    362  */ 
    363 static bool clean_shot(int y1, int x1, int y2, int x2) 
    364 { 
    365         int y, x; 
    366  
    367         int grid_n; 
    368         u16b grid_g[512]; 
    369  
    370         /* Check the projection path */ 
    371         grid_n = project_path(grid_g, MAX_RANGE, y1, x1, y2, x2, PROJECT_STOP); 
    372  
    373         /* Source and target the same */ 
    374         if (!grid_n) return (FALSE); 
    375  
    376         /* Final grid */ 
    377         y = GRID_Y(grid_g[grid_n-1]); 
    378         x = GRID_X(grid_g[grid_n-1]); 
    379  
    380         /* May not end in a wall grid */ 
    381         if (!cave_floor_bold(y, x)) return (FALSE); 
    382  
    383         /* May not end in an unrequested grid */ 
    384         if ((y != y2) || (x != x2)) return (FALSE); 
    385  
    386         /* Assume okay */ 
    387         return (TRUE); 
    388359} 
    389360 
     
    738709 
    739710                /* Check path */ 
    740                 if (!projectable(m_ptr->fy, m_ptr->fx, py, px)) return (FALSE); 
     711                if (!projectable(m_ptr->fy, m_ptr->fx, py, px, PROJECT_NONE)) 
     712                        return (FALSE); 
    741713        } 
    742714 
  • trunk/src/monster/monster1.c

    • Property svn:mergeinfo set
  • trunk/src/monster/monster2.c

    • Property svn:mergeinfo set
  • trunk/src/object/obj-desc.c

    • Property svn:mergeinfo set
  • trunk/src/object/obj-info.c

    • Property svn:mergeinfo set
  • trunk/src/object/obj-make.c

    • Property svn:mergeinfo set
  • trunk/src/object/obj-ui.c

    • Property svn:mergeinfo set
  • trunk/src/object/obj-util.c

    • Property svn:mergeinfo set
  • trunk/src/object/randart.c

    • Property svn:mergeinfo set
    r918 r993  
    1717 */ 
    1818#include "angband.h" 
    19 #include "tvalsval.h" 
     19#include "object/tvalsval.h" 
    2020#include "init.h" 
    2121#include "randname.h" 
  • trunk/src/object/tvalsval.h

    • Property svn:mergeinfo set
    r990 r993  
    1 #ifndef INCLUDED_TVALSV_H 
    2 #define INCLUDED_TVALSV_H 
     1#ifndef INCLUDED_OBJECT_TVALSVAL_H 
     2#define INCLUDED_OBJECT_TVALSVAL_H 
    33 
    44 
     
    374374 
    375375 
    376 #endif /* INCLUDED_TVALSV_H */ 
     376#endif /* INCLUDED_OBJECT_TVALSVAL_H */ 
  • trunk/src/spells1.c

    r918 r993  
    1717 */ 
    1818#include "angband.h" 
    19 #include "tvalsval.h" 
     19#include "object/tvalsval.h" 
    2020 
    2121 
  • trunk/src/spells2.c

    r930 r993  
    1717 */ 
    1818#include "angband.h" 
    19 #include "tvalsval.h" 
     19#include "object/tvalsval.h" 
    2020 
    2121 
  • trunk/src/squelch.c

    r918 r993  
    2020#include "cmds.h" 
    2121#include "ui-menu.h" 
    22 #include "tvalsval.h" 
     22#include "object/tvalsval.h" 
    2323 
    2424/* 
  • trunk/src/store.c

    r991 r993  
    2121#include "ui-menu.h" 
    2222#include "game-event.h" 
    23 #include "tvalsval.h" 
     23#include "object/tvalsval.h" 
    2424 
    2525 
  • trunk/src/tables.c

    r918 r993  
    1717 */ 
    1818#include "angband.h" 
    19 #include "tvalsval.h" 
     19#include "object/tvalsval.h" 
    2020 
    2121 
  • trunk/src/target.c

    r954 r993  
    114114 
    115115        /* Monster must be projectable */ 
    116         if (!projectable(py, px, m_ptr->fy, m_ptr->fx)) return (FALSE); 
     116        if (!projectable(py, px, m_ptr->fy, m_ptr->fx, PROJECT_STOP)) 
     117                return (FALSE); 
    117118 
    118119        /* Hack -- no targeting hallucinations */ 
  • trunk/src/types.h

    r918 r993  
    116116 
    117117 
    118 /** 
    119  * Information about object kinds, including player knowledge. 
    120  * 
    121  * TODO: split out the user-changeable bits into a separate struct so this 
    122  * one can be read-only. 
    123  */ 
    124 typedef struct 
    125 
    126         /** Constants **/ 
    127  
    128         u32b name;     /**< (const char *) object_kind::name + k_name = Name */ 
    129         u32b text;     /**< (const char *) object_kind::text + k_text = Description  */ 
    130  
    131         byte tval;     /**< General object type (see TV_ macros) */ 
    132         byte sval;     /**< Object sub-type (see SV_ macros) */ 
    133         s16b pval;     /**< Power for any flags which need it */ 
    134  
    135         s16b to_h;     /**< Bonus to-hit */ 
    136         s16b to_d;     /**< Bonus to damage */ 
    137         s16b to_a;     /**< Bonus to armor */ 
    138         s16b ac;       /**< Base armor */ 
    139  
    140         byte dd;       /**< Damage dice */ 
    141         byte ds;       /**< Damage sides */ 
    142         s16b weight;   /**< Weight, in 1/10lbs */ 
    143  
    144         s32b cost;     /**< Object base cost */ 
    145  
    146         u32b flags1;   /**< Flags, set 1 (see TR1_ macros) */ 
    147         u32b flags2;   /**< Flags, set 2 (see TR2_ macros) */ 
    148         u32b flags3;   /**< Flags, set 3 (see TR3_ macros) */ 
    149  
    150         byte d_attr;   /**< Default object attribute */ 
    151         char d_char;   /**< Default object character */ 
    152  
    153         byte alloc_prob;   /**< Allocation: commonness */ 
    154         byte alloc_min;    /**< Highest normal dungeon level */ 
    155         byte alloc_max;    /**< Lowest normal dungeon level */ 
    156         byte level;        /**< Level */ 
    157  
    158         u16b effect;       /**< Effect this item produces (effects.c) */ 
    159         u16b time_base;    /**< Recharge time (if appropriate) */ 
    160         byte time_dice;    /**< Randomised recharge time dice */ 
    161         byte time_sides;   /**< Randomised recharge time sides */ 
    162  
    163         byte charge_base;  /**< Non-random initial charge base */ 
    164         byte charge_dd;    /**< Randomised initial charge dice */ 
    165         byte charge_ds;    /**< Randomised initial charge sides */ 
    166  
    167         byte gen_mult_prob; /**< Probability of generating more than one */ 
    168         byte gen_dice;      /**< Number to generate dice */ 
    169         byte gen_side;      /**< Number to generate sides */ 
    170  
    171         u16b flavor;        /**< Special object flavor (or zero) */ 
    172  
    173  
    174         /** Game-dependent **/ 
    175  
    176         byte x_attr;   /**< Desired object attribute (set by user/pref file) */ 
    177         char x_char;   /**< Desired object character (set by user/pref file) */ 
    178  
    179         /** Also saved in savefile **/ 
    180  
    181         u16b note;     /**< Autoinscription quark number */ 
    182  
    183         bool aware;    /**< Set if player is aware of the kind's effects */ 
    184         bool tried;    /**< Set if kind has been tried */ 
    185  
    186         bool squelch;  /**< Set if kind should be squelched */ 
    187         bool everseen; /**< Set if kind has ever been seen (to despoilify squelch menus) */ 
    188 } object_kind; 
    189  
    190  
    191  
    192 /** 
    193  * Information about artifacts. 
    194  * 
    195  * Note that ::cur_num is written to the savefile. 
    196  * 
    197  * TODO: Fix this max_num/cur_num crap and just have a big boolean array of 
    198  * which artifacts have been created and haven't, so this can become read-only. 
    199  */ 
    200 typedef struct 
    201 
    202         u32b name;    /**< (const char *) artifact_type::name + a_name = Name */ 
    203         u32b text;    /**< (const char *) artifact_type::text + a_text = Description  */ 
    204  
    205         byte tval;    /**< General artifact type (see TV_ macros) */ 
    206         byte sval;    /**< Artifact sub-type (see SV_ macros) */ 
    207         s16b pval;    /**< Power for any flags which need it */ 
    208  
    209         s16b to_h;    /**< Bonus to hit */ 
    210         s16b to_d;    /**< Bonus to damage */ 
    211         s16b to_a;    /**< Bonus to armor */ 
    212         s16b ac;      /**< Base armor */ 
    213  
    214         byte dd;      /**< Base damage dice */ 
    215         byte ds;      /**< Base damage sides */ 
    216  
    217     &nb