Big ball-of-mud commit
authorMartin Read <mpread@chiark.greenend.org.uk>
Wed, 12 Mar 2014 16:00:50 +0000 (16:00 +0000)
committerMartin Read <mpread@chiark.greenend.org.uk>
Wed, 12 Mar 2014 16:00:50 +0000 (16:00 +0000)
commit13898f809e251ccd415144b955a315eb75e0b5ed
tree618a1b19afb65636efd9091e94038afce716433e
parent92735e97d9b83fa4871528097bc855a57526fe4f
Big ball-of-mud commit

Whole bunch of things in here, including:

* Files which don't need to refer to specific permons or permobjs by ID should
  no longer need to depend on the ID-list headers, as the NUM_OF_xxx constants
  for these arrays have been converted from preprocessor macros to objects of
  type "const int".
* A modicum of version-checking and referential integrity checking has been
  added to load_game(), which has also been converted to use exceptions to
  indicate failure.
* A bunch of things now use lookup tables (either indexed or linear search)
  instead of big clunky switches.
* Some item-attribute work is still in progress, which should allow a bunch
  of switches on permobj IDs to be replaced with tests for object flags.
  (Also, in principle the game should now support any piece of equipment
  conveying any resistance.)
* A few other lingering bugs from Victrix Abyssi have been caught and fixed.
* The nutritional value of different pieces of food is now defined in the
  permobj database rather than being a single hard-coded constant in
  eat_food().
* There is now a choice of three character classes: Princess, Demon Hunter,
  and Thanatophile.
27 files changed:
MANIFEST
Makefile
combat.cc
combo.cc [new file with mode: 0644]
core.hh
deeds.cc
default.permobjs
display-nc.cc
log.cc
main.cc
map.cc
map.hh
mon1.cc
monsters.hh
notify-local-tty.cc
notify.hh
obj1.cc
obumbrata.hh
permobj.hh
permon.hh
player.hh
pmon2.cc
pmon_comp
pobj_comp
role.cc [new file with mode: 0644]
skills.cc [new file with mode: 0644]
u.cc