Changeset 996
- Timestamp:
- 10/01/08 01:41:31 (2 months ago)
- Files:
-
- trunk/src/Makefile.inc (modified) (1 diff)
- trunk/src/Makefile.src (modified) (2 diffs)
- trunk/src/angband.h (modified) (1 diff)
- trunk/src/externs.h (modified) (1 diff)
- trunk/src/player (added)
- trunk/src/player/calcs.c (moved) (moved from trunk/src/xtra1.c) (4 diffs, 1 prop)
- trunk/src/player/player.h (added)
- trunk/src/player/types.h (added)
- trunk/src/player/util.c (added)
- trunk/src/types.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/Makefile.inc
r993 r996 16 16 attack.o: attack.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 17 17 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 object/types.h monster/types.h ui.h z-type.h \ 19 externs.h object/tvalsval.h 18 defines.h option.h types.h object/types.h object/object.h \ 19 monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 20 object/tvalsval.h 20 21 birth.o: birth.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 21 22 z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.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 23 option.h types.h object/types.h object/object.h monster/types.h \ 24 player/types.h store.h ui.h z-type.h externs.h object/tvalsval.h cmds.h \ 25 game-event.h game-cmd.h ui-menu.h 24 26 button.o: button.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 25 27 z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 26 defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \27 externs.h28 defines.h option.h types.h object/types.h object/object.h \ 29 monster/types.h player/types.h store.h ui.h z-type.h externs.h 28 30 cave.o: cave.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 29 31 z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.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 32 option.h types.h object/types.h object/object.h monster/types.h \ 33 player/types.h store.h ui.h z-type.h externs.h object/tvalsval.h \ 34 game-event.h 32 35 cmd0.o: cmd0.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 33 36 z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.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 37 option.h types.h object/types.h object/object.h monster/types.h \ 38 player/types.h store.h ui.h z-type.h externs.h wizard.h cmds.h \ 39 ui-menu.h 36 40 cmd1.o: cmd1.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 37 41 z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 38 option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 42 option.h types.h object/types.h object/object.h monster/types.h \ 43 player/types.h store.h ui.h z-type.h externs.h object/tvalsval.h cmds.h 44 cmd2.o: cmd2.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 45 z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 46 option.h types.h object/types.h object/object.h monster/types.h \ 47 player/types.h store.h ui.h z-type.h externs.h object/tvalsval.h 48 cmd3.o: cmd3.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 49 z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 50 option.h types.h object/types.h object/object.h monster/types.h \ 51 player/types.h store.h ui.h z-type.h externs.h object/tvalsval.h 52 cmd4.o: cmd4.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 53 z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 54 option.h types.h object/types.h object/object.h monster/types.h \ 55 player/types.h store.h ui.h z-type.h externs.h object/tvalsval.h \ 56 ui-menu.h 57 cmd5.o: cmd5.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 58 z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 59 option.h types.h object/types.h object/object.h monster/types.h \ 60 player/types.h store.h ui.h z-type.h externs.h object/tvalsval.h 61 cmd6.o: cmd6.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 62 z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 63 option.h types.h object/types.h object/object.h monster/types.h \ 64 player/types.h store.h ui.h z-type.h externs.h object/tvalsval.h cmds.h \ 65 effects.h list-effects.h 66 cmd-obj.o: cmd-obj.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 67 z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 68 defines.h option.h types.h object/types.h object/object.h \ 69 monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 39 70 object/tvalsval.h cmds.h 40 cmd2.o: cmd2.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \41 z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \42 option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \43 object/tvalsval.h44 cmd3.o: cmd3.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \45 z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \46 option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \47 object/tvalsval.h48 cmd4.o: cmd4.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \49 z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.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.h52 cmd5.o: cmd5.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \53 z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \54 option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \55 object/tvalsval.h56 cmd6.o: cmd6.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \57 z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.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.h60 cmd-obj.o: cmd-obj.c angband.h h-basic.h z-file.h z-form.h z-util.h \61 z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.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.h64 71 death.o: death.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 65 72 z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 66 option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 73 option.h types.h object/types.h object/object.h monster/types.h \ 74 player/types.h store.h ui.h z-type.h externs.h ui-menu.h cmds.h 75 debug.o: debug.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 76 z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 77 option.h types.h object/types.h object/object.h monster/types.h \ 78 player/types.h store.h ui.h z-type.h externs.h debug.h 79 dungeon.o: dungeon.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 80 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 object/types.h object/object.h \ 82 monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 83 object/tvalsval.h cmds.h game-event.h 84 effects.o: effects.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 85 z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 86 defines.h option.h types.h object/types.h object/object.h \ 87 monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 88 effects.h list-effects.h 89 files.o: files.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 90 z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 91 option.h types.h object/types.h object/object.h monster/types.h \ 92 player/types.h store.h ui.h z-type.h externs.h object/tvalsval.h \ 67 93 ui-menu.h cmds.h 68 debug.o: debug.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \69 z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \70 option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \71 debug.h72 dungeon.o: dungeon.c angband.h h-basic.h z-file.h z-form.h z-util.h \73 z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.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.h76 effects.o: effects.c angband.h h-basic.h z-file.h z-form.h z-util.h \77 z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.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.h80 files.o: files.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \81 z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.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.h84 94 game-cmd.o: game-cmd.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 85 95 z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.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 96 defines.h option.h types.h object/types.h object/object.h \ 97 monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 98 game-cmd.h 88 99 game-event.o: game-event.c z-virt.h h-basic.h game-event.h 89 100 generate.o: generate.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 90 101 z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 91 defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \92 externs.h102 defines.h option.h types.h object/types.h object/object.h \ 103 monster/types.h player/types.h store.h ui.h z-type.h externs.h 93 104 history.o: history.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 94 105 z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 95 defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \96 externs.h106 defines.h option.h types.h object/types.h object/object.h \ 107 monster/types.h player/types.h store.h ui.h z-type.h externs.h 97 108 init1.o: init1.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 98 109 z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.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 110 option.h types.h object/types.h object/object.h monster/types.h \ 111 player/types.h store.h ui.h z-type.h externs.h object/tvalsval.h \ 112 effects.h list-effects.h init.h 101 113 init2.o: init2.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 102 114 z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.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 115 option.h types.h object/types.h object/object.h monster/types.h \ 116 player/types.h store.h ui.h z-type.h externs.h init.h cmds.h \ 117 game-event.h game-cmd.h 105 118 load.o: load.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 106 119 z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 107 option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \108 object/tvalsval.h120 option.h types.h object/types.h object/object.h monster/types.h \ 121 player/types.h store.h ui.h z-type.h externs.h object/tvalsval.h 109 122 melee1.o: monster/melee1.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 110 123 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 124 defines.h option.h types.h object/types.h object/object.h \ 125 monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 126 object/tvalsval.h 113 127 melee2.o: monster/melee2.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 114 128 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 129 defines.h option.h types.h object/types.h object/object.h \ 130 monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 131 bitflag.h object/tvalsval.h 117 132 monster1.o: monster/monster1.c angband.h h-basic.h z-file.h z-form.h \ 118 133 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.h134 config.h defines.h option.h types.h object/types.h object/object.h \ 135 monster/types.h player/types.h store.h ui.h z-type.h externs.h 121 136 monster2.o: monster/monster2.c angband.h h-basic.h z-file.h z-form.h \ 122 137 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.h138 config.h defines.h option.h types.h object/types.h object/object.h \ 139 monster/types.h player/types.h store.h ui.h z-type.h externs.h 125 140 obj-desc.o: object/obj-desc.c angband.h h-basic.h z-file.h z-form.h \ 126 141 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 142 config.h defines.h option.h types.h object/types.h object/object.h \ 143 monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 144 object/tvalsval.h 129 145 obj-info.o: object/obj-info.c angband.h h-basic.h z-file.h z-form.h \ 130 146 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 147 config.h defines.h option.h types.h object/types.h object/object.h \ 148 monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 149 effects.h list-effects.h cmds.h object/tvalsval.h 133 150 obj-make.o: object/obj-make.c angband.h h-basic.h z-file.h z-form.h \ 134 151 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 152 config.h defines.h option.h types.h object/types.h object/object.h \ 153 monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 154 object/tvalsval.h 137 155 obj-ui.o: object/obj-ui.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 138 156 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 157 defines.h option.h types.h object/types.h object/object.h \ 158 monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 159 object/tvalsval.h 141 160 obj-util.o: object/obj-util.c angband.h h-basic.h z-file.h z-form.h \ 142 161 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 162 config.h defines.h option.h types.h object/types.h object/object.h \ 163 monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 164 randname.h object/tvalsval.h 165 randart.o: object/randart.c angband.h h-basic.h z-file.h z-form.h \ 166 z-util.h z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h \ 167 config.h defines.h option.h types.h object/types.h object/object.h \ 168 monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 169 object/tvalsval.h init.h randname.h 145 170 option.o: option.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 146 171 z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 147 defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 148 externs.h 149 randart.o: randart.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 150 z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.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 172 defines.h option.h types.h object/types.h object/object.h \ 173 monster/types.h player/types.h store.h ui.h z-type.h externs.h 153 174 randname.o: randname.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 154 175 z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 155 defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 156 externs.h randname.h 176 defines.h option.h types.h object/types.h object/object.h \ 177 monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 178 randname.h 157 179 pathfind.o: pathfind.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 158 180 z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 159 defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 160 externs.h 181 defines.h option.h types.h object/types.h object/object.h \ 182 monster/types.h player/types.h store.h ui.h z-type.h externs.h 183 calcs.o: player/calcs.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 184 z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 185 defines.h option.h types.h object/types.h object/object.h \ 186 monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 187 game-event.h object/tvalsval.h 161 188 score.o: score.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 162 189 z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 163 option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h 190 option.h types.h object/types.h object/object.h monster/types.h \ 191 player/types.h store.h ui.h z-type.h externs.h 164 192 signals.o: signals.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 165 193 z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 166 defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \167 externs.h194 defines.h option.h types.h object/types.h object/object.h \ 195 monster/types.h player/types.h store.h ui.h z-type.h externs.h 168 196 save.o: save.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 169 197 z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 170 option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h 198 option.h types.h object/types.h object/object.h monster/types.h \ 199 player/types.h store.h ui.h z-type.h externs.h 171 200 spells1.o: spells1.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 172 201 z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.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 202 defines.h option.h types.h object/types.h object/object.h \ 203 monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 204 object/tvalsval.h 175 205 spells2.o: spells2.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 176 206 z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.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 207 defines.h option.h types.h object/types.h object/object.h \ 208 monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 209 object/tvalsval.h 179 210 squelch.o: squelch.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 180 211 z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.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 212 defines.h option.h types.h object/types.h object/object.h \ 213 monster/types.h player/types.h store.h ui.h z-type.h externs.h cmds.h \ 214 ui-menu.h object/tvalsval.h 183 215 store.o: store.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 184 216 z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.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 217 option.h types.h object/types.h object/object.h monster/types.h \ 218 player/types.h store.h ui.h z-type.h externs.h cmds.h ui-menu.h \ 219 game-event.h object/tvalsval.h 187 220 tables.o: tables.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 188 221 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 object/types.h monster/types.h ui.h z-type.h \ 190 externs.h object/tvalsval.h 222 defines.h option.h types.h object/types.h object/object.h \ 223 monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 224 object/tvalsval.h 191 225 target.o: target.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 192 226 z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 193 defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \194 externs.h cmds.h227 defines.h option.h types.h object/types.h object/object.h \ 228 monster/types.h player/types.h store.h ui.h z-type.h externs.h cmds.h 195 229 trap.o: trap.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 196 230 z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 197 option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h 231 option.h types.h object/types.h object/object.h monster/types.h \ 232 player/types.h store.h ui.h z-type.h externs.h 198 233 ui.o: ui.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 199 234 z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 200 option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h 235 option.h types.h object/types.h object/object.h monster/types.h \ 236 player/types.h store.h ui.h z-type.h externs.h 201 237 ui-birth.o: ui-birth.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 202 238 z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.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 239 defines.h option.h types.h object/types.h object/object.h \ 240 monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 241 ui-menu.h game-event.h game-cmd.h 205 242 ui-event.o: ui-event.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 206 243 z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 207 defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \208 externs.h244 defines.h option.h types.h object/types.h object/object.h \ 245 monster/types.h player/types.h store.h ui.h z-type.h externs.h 209 246 ui-menu.o: ui-menu.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 210 247 z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.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 248 defines.h option.h types.h object/types.h object/object.h \ 249 monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 250 ui-menu.h 213 251 util.o: util.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 214 252 z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 215 option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \216 randname.h253 option.h types.h object/types.h object/object.h monster/types.h \ 254 player/types.h store.h ui.h z-type.h externs.h randname.h 217 255 variable.o: variable.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 218 256 z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 219 defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \220 externs.h257 defines.h option.h types.h object/types.h object/object.h \ 258 monster/types.h player/types.h store.h ui.h z-type.h externs.h 221 259 wiz-spoil.o: wiz-spoil.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 222 260 z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.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 261 defines.h option.h types.h object/types.h object/object.h \ 262 monster/types.h player/types.h store.h ui.h z-type.h externs.h cmds.h \ 263 object/tvalsval.h 225 264 wiz-stats.o: wiz-stats.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 226 265 z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.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 266 defines.h option.h types.h object/types.h object/object.h \ 267 monster/types.h player/types.h store.h ui.h z-type.h externs.h cmds.h \ 268 wizard.h object/tvalsval.h 229 269 wizard.o: wizard.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 230 270 z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.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 271 defines.h option.h types.h object/types.h object/object.h \ 272 monster/types.h player/types.h store.h ui.h z-type.h externs.h wizard.h \ 273 cmds.h object/tvalsval.h 233 274 x-spell.o: x-spell.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 234 275 z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.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 237 xtra1.o: xtra1.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 238 z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.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 276 defines.h option.h types.h object/types.h object/object.h \ 277 monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 278 object/tvalsval.h 241 279 xtra2.o: xtra2.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 242 280 z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 243 option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \244 cmds.h object/tvalsval.h281 option.h types.h object/types.h object/object.h monster/types.h \ 282 player/types.h store.h ui.h z-type.h externs.h cmds.h object/tvalsval.h 245 283 xtra3.o: xtra3.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 246 284 z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.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 285 option.h types.h object/types.h object/object.h monster/types.h \ 286 player/types.h store.h ui.h z-type.h externs.h game-event.h ui-birth.h \ 287 object/tvalsval.h 249 288 z-file.o: z-file.c z-file.h h-basic.h z-virt.h z-util.h z-form.h 250 289 z-form.o: z-form.c z-form.h h-basic.h z-type.h z-util.h z-virt.h trunk/src/Makefile.src
r993 r996 90 90 randname.o \ 91 91 pathfind.o \ 92 player/calcs.o \ 93 player/util.o \ 92 94 score.o \ 93 95 signals.o \ … … 110 112 wizard.o \ 111 113 x-spell.o \ 112 xtra1.o \113 114 xtra2.o \ 114 115 xtra3.o trunk/src/angband.h
r993 r996 39 39 #include "object/object.h" 40 40 #include "monster/types.h" 41 #include "player/types.h" 42 #include "player/player.h" 41 43 #include "store.h" 42 44 trunk/src/externs.h
r993 r996 639 639 extern bool cast_spell(int tval, int index); 640 640 641 /* xtra1.c */642 s16b modify_stat_value(int value, int amount);643 int calc_blows(const object_type *o_ptr);644 void notice_stuff(void);645 void update_stuff(void);646 void redraw_stuff(void);647 void handle_stuff(void);648 649 641 /* xtra2.c */ 650 642 bool set_timed(int idx, int v); trunk/src/player/calcs.c
- Property svn:mergeinfo set
r993 r996 1 1 /* 2 * File: xtra1.c2 * File: player/calcs.c 3 3 * Purpose: Player status calculation, signalling ui events based on status 4 4 * changes. … … 21 21 #include "object/tvalsval.h" 22 22 23 24 struct flag_event_trigger25 {26 u32b flag;27 game_event_type event;28 };29 30 /*31 * Modify a stat value by a "modifier", return new value32 *33 * Stats go up: 3,4,...,17,18,18/10,18/20,...,18/22034 * Or even: 18/13, 18/23, 18/33, ..., 18/22035 *36 * Stats go down: 18/220, 18/210,..., 18/10, 18, 17, ..., 337 * Or even: 18/13, 18/03, 18, 17, ..., 338 */39 s16b modify_stat_value(int value, int amount)40 {41 int i;42 43 /* Reward */44 if (amount > 0)45 {46 /* Apply each point */47 for (i = 0; i < amount; i++)48 {49 /* One point at a time */50 if (value < 18) value++;51 52 /* Ten "points" at a time */53 else value += 10;54 }55 }56 57 /* Penalty */58 else if (amount < 0)59 {60 /* Apply each point */61 for (i = 0; i < (0 - amount); i++)62 {63 /* Ten points at a time */64 if (value >= 18+10) value -= 10;65 66 /* Hack -- prevent weirdness */67 else if (value > 18) value = 18;68 69 /* One point at a time */70 else if (value > 3) value--;71 }72 }73 74 /* Return new value */75 return (value);76 }77 23 78 24 … … 1661 1607 1662 1608 1609 struct flag_event_trigger 1610 { 1611 u32b flag; 1612 game_event_type event; 1613 }; 1614 1615 1616 1663 1617 /* 1664 1618 * Events triggered by the various flags. … … 1683 1637 { PR_DTRAP, EVENT_DETECTIONSTATUS }, 1684 1638 { PR_BUTTONS, EVENT_MOUSEBUTTONS }, 1685 1639 1686 1640 { PR_INVEN, EVENT_INVENTORY }, 1687 1641 { PR_EQUIP, EVENT_EQUIPMENT }, trunk/src/types.h
r993 r996 352 352 353 353 354 /*355 * Most of the "player" information goes here.356 *357 * This stucture gives us a large collection of player variables.358 *359 * This entire structure is wiped when a new character is born.360 *361 * This structure is more or less laid out so that the information362 * which must be saved in the savefile precedes all the information363 * which can be recomputed as needed.364 */365 struct player_type366 {367 s16b py; /* Player location */368 s16b px; /* Player location */369 370 byte psex; /* Sex index */371 byte prace; /* Race index */372 byte pclass; /* Class index */373 byte oops; /* Unused */374 375 byte hitdie; /* Hit dice (sides) */376 byte expfact; /* Experience factor */377 378 s16b age; /* Characters age */379 s16b ht; /* Height */380 s16b wt; /* Weight */381 s16b sc; /* Social Class */382 383 s32b au; /* Current Gold */384 385 s16b max_depth; /* Max depth */386 s16b depth; /* Cur depth */387 388 s16b max_lev; /* Max level */389 s16b lev; /* Cur level */390 391 s32b max_exp; /* Max experience */392 s32b exp; /* Cur experience */393 u16b exp_frac; /* Cur exp frac (times 2^16) */394 395 s16b mhp; /* Max hit pts */396 s16b chp; /* Cur hit pts */397 u16b chp_frac; /* Cur hit frac (times 2^16) */398 399 s16b msp; /* Max mana pts */400 s16b csp; /* Cur mana pts */401 u16b csp_frac; /* Cur mana frac (times 2^16) */402 403 s16b stat_max[A_MAX]; /* Current "maximal" stat values */404 s16b stat_cur[A_MAX]; /* Current "natural" stat values */405 406 s16b timed[TMD_MAX]; /* Timed effects */407 408 s16b word_recall; /* Word of recall counter */409 410 s16b energy; /* Current energy */411 412 s16b food; /* Current nutrition */413 414 byte confusing; /* Glowing hands */415 byte searching; /* Currently searching */416 417 byte spell_flags[PY_MAX_SPELLS]; /* Spell flags */418 419 byte spell_order[PY_MAX_SPELLS]; /* Spell order */420 421 s16b player_hp[PY_MAX_LEVEL]; /* HP Array */422 423 char died_from[80]; /* Cause of death */424 char history[250]; /* Initial history */425 426 u16b total_winner; /* Total winner */427 u16b panic_save; /* Panic save */428 429 u16b noscore; /* Cheating flags */430 431 bool is_dead; /* Player is dead */432 433 bool wizard; /* Player is in wizard mode */434 435 436 /*** Temporary fields ***/437 438 bool playing; /* True if player is playing */439 440 bool leaving; /* True if player is leaving */441 442 bool create_up_stair; /* Create up stair on next level */443 bool create_down_stair; /* Create down stair on next level */444 445 s32b total_weight; /* Total weight being carried */446 447 s16b inven_cnt; /* Number of items in inventory */448 s16b equip_cnt; /* Number of items in equipment */449 450 s16b health_who; /* Health bar trackee */451 452 s16b monster_race_idx; /* Monster race trackee */453 454 s16b object_kind_idx; /* Object kind trackee */455 456 s16b energy_use; /* Energy use this turn */457 458 s16b resting; /* Resting counter */459 s16b running; /* Running counter */460 bool running_withpathfind; /* Are we using the pathfinder ? */461 462 s16b run_cur_dir; /* Direction we are running */463 s16b run_old_dir; /* Direction we came from */464 bool run_unused; /* Unused (padding field) */465 bool run_open_area; /* Looking for an open area */466 bool run_break_right; /* Looking for a break (right) */467 bool run_break_left; /* Looking for a break (left) */468 469 s16b command_cmd; /* Gives identity of current command */470 s16b command_arg; /* Gives argument of current command */471 s16b command_rep; /* Gives repetition of current command */472 s16b command_dir; /* Gives direction of current command */473 int command_inv; /* Gives item of current command */474 ui_event_data command_cmd_ex; /* Gives additional information of current command */475 476 s16b command_wrk; /* See "cmd1.c" */477 s16b command_new; /* Hack -- command chaining XXX XXX */478 479 s16b new_spells; /* Number of spells available */480 481 bool cumber_armor; /* Mana draining armor */482 bool cumber_glove; /* Mana draining gloves */483 bool heavy_wield; /* Heavy weapon */484 bool heavy_shoot; /* Heavy shooter */485 bool icky_wield; /* Icky weapon */486 487 s16b cur_lite; /* Radius of lite (if any) */488 489 u32b notice; /* Special Updates (bit flags) */490 u32b update; /* Pending Updates (bit flags) */491 u32b redraw; /* Normal Redraws (bit flags) */492 493 s16b stat_use[A_MAX]; /* Current modified stats */494 s16b stat_top[A_MAX]; /* Maximal modified stats */495 496 /*** Extracted fields ***/497 498 s16b stat_add[A_MAX]; /* Equipment stat bonuses */499 s16b stat_ind[A_MAX]; /* Indexes into stat tables */500 501 bool vuln_acid;502 bool vuln_elec;503 bool vuln_fire;504 bool vuln_cold;505 506 bool immune_acid; /* Immunity to acid */507 bool immune_elec; /* Immunity to lightning */508 bool immune_fire; /* Immunity to fire */509 bool immune_cold; /* Immunity to cold */510 511 bool resist_acid; /* Resist acid */512 bool resist_elec; /* Resist lightning */513 bool resist_fire; /* Resist fire */514 bool resist_cold; /* Resist cold */515 bool resist_pois; /* Resist poison */516 517 bool resist_fear; /* Resist fear */518 bool resist_lite; /* Resist light */519 bool resist_dark; /* Resist darkness */520 bool resist_blind; /* Resist blindness */521 bool resist_confu; /* Resist confusion */522 bool resist_sound; /* Resist sound */523 bool resist_shard; /* Resist shards */524 bool resist_nexus; /* Resist nexus */525 bool resist_nethr; /* Resist nether */526 bool resist_chaos; /* Resist chaos */527 bool resist_disen; /* Resist disenchant */528 529 bool sustain_str; /* Keep strength */530 bool sustain_int; /* Keep intelligence */531 bool sustain_wis; /* Keep wisdom */532 bool sustain_dex; /* Keep dexterity */533 bool sustain_con; /* Keep constitution */534 bool sustain_chr; /* Keep charisma */535 536 bool slow_digest; /* Slower digestion */537 bool impair_hp; /* Slow HP regeneration */538 bool impair_mana; /* Slow mana regeneration */539 bool ffall; /* Feather falling */540 bool regenerate; /* Regeneration */541 bool telepathy; /* Telepathy */542 bool see_inv; /* See invisible */543 bool free_act; /* Free action */544 bool hold_life; /* Hold life */545 bool afraid; /* Afraid */546 547 bool impact; /* Earthquake blows */548 bool aggravate; /* Aggravate monsters */549 bool teleport; /* Random teleporting */550 bool exp_drain; /* Experience draining */551 552 bool bless_blade; /* Blessed blade */553 554 s16b dis_to_h; /* Known bonus to hit */555 s16b dis_to_d; /* Known bonus to dam */556 s16b dis_to_a; /* Known bonus to ac */557 558 s16b dis_ac; /* Known base ac */559 560 s16b to_h; /* Bonus to hit */561 s16b to_d; /* Bonus to dam */562 s16b to_a; /* Bonus to ac */563 564 s16b ac; /* Base ac */565 566 s16b see_infra; /* Infravision range */567 568 s16b skills[SKILL_MAX]; /* Skills */569 570 u32b noise; /* Derived from stealth */571 572 s16b num_blow; /* Number of blows */573 s16b num_fire; /* Number of shots */574 575 byte ammo_mult; /* Ammo multiplier */576 577 byte ammo_tval; /* Ammo variety */578 579 s16b pspeed; /* Current speed */580 581 /* Generation fields (for quick start) */582 s32b au_birth; /* Birth gold */583 s16b stat_birth[A_MAX]; /* Birth "natural" stat values */584 s16b ht_birth; /* Birth Height */585 s16b wt_birth; /* Birth Weight */586 };587 588 589 354 /** 590 355 * Defines a (value, name) pairing. Variable names used are historical.
