Eric S. Raymond
dd9bbe1f00
Because (almost) everything is done in handlers now, merge the action files.
2017-06-09 08:54:03 -04:00
Eric S. Raymond
2abc833504
read() and reservoir() handlers.
2017-06-09 08:38:11 -04:00
Eric S. Raymond
f47745a7c4
Yet more action handlers.
2017-06-09 08:21:14 -04:00
Eric S. Raymond
08ed2af230
Action handler light().
2017-06-09 07:55:55 -04:00
Eric S. Raymond
ff66456cb0
Add lock() handler.
2017-06-09 02:04:01 -04:00
Eric S. Raymond
50b30d0144
Handler for transitive extinguish.
2017-06-09 01:39:41 -04:00
Eric S. Raymond
ebfe3e49fa
Prepare for large goto elimination - whitesoace-only change.
2017-06-08 22:48:05 -04:00
Eric S. Raymond
e1176dbf9c
Handler for SAY.
2017-06-08 18:49:36 -04:00
Eric S. Raymond
db29f53a9a
More action handlers.
2017-06-08 18:24:15 -04:00
Eric S. Raymond
e7451b543d
More handler refactoring.
2017-06-08 17:14:00 -04:00
Eric S. Raymond
ee20cd0861
More action handlers. Use consistent VO order.
2017-06-08 16:18:21 -04:00
Eric S. Raymond
1ca74bfc39
Beginning of actions1.c refactor.
2017-06-08 15:27:05 -04:00
Eric S. Raymond
46cd836df0
Abolish funcs.h.
2017-06-08 04:25:20 -04:00
Eric S. Raymond
14fee6b979
Eliminate globals.
2017-06-07 14:03:33 -04:00
Eric S. Raymond
dad1df9796
Localize KK.
2017-06-07 10:23:06 -04:00
Eric S. Raymond
8d90b03ee4
Fully localize VERB.
2017-06-07 10:06:14 -04:00
Eric S. Raymond
0e3456069f
Further narrow the scope of VERB.
2017-06-07 09:57:23 -04:00
Eric S. Raymond
57104237ed
Narrow the scope of VERB.
2017-06-07 09:39:04 -04:00
Eric S. Raymond
aba35733e7
OBJ has become local in actions1.c and diesn't have to be saved.
2017-06-07 08:59:50 -04:00
Eric S. Raymond
f01cb89a76
Complete OBJ localization in actions2.c
2017-06-07 08:48:12 -04:00
Eric S. Raymond
df83a345a2
Continuing OBJ localization.
2017-06-07 08:41:46 -04:00
Eric S. Raymond
3079ebda95
Yet more OBJ localization.
2017-06-07 08:34:42 -04:00
Eric S. Raymond
f20b7f56fd
Localize OBJ in throw().
2017-06-07 08:32:06 -04:00
Eric S. Raymond
a5cef5208f
Begin localizing OBJ.
2017-06-07 08:29:30 -04:00
Eric S. Raymond
4fe6286cc6
LOC pulled into game structure block.
2017-06-07 07:50:09 -04:00
Eric S. Raymond
a6432a4ed4
Fix allcapsed comment.
2017-06-07 07:40:44 -04:00
Eric S. Raymond
a38b61638c
Global LL becomes local to command interpreter toplevel...
...
...and doesn't have to be saved.
2017-06-07 07:30:56 -04:00
Eric S. Raymond
2d95c3f4f5
Finish moving state arrays into game structure block.
2017-06-07 07:10:07 -04:00
Eric S. Raymond
0b02763bf0
More collecting of globals.
2017-06-07 06:38:40 -04:00
Eric S. Raymond
7f4cff1188
Bring SETUP variable into game state block
...
Saved separately because the kogic around this variable looks
a bit dubious and may need review.
2017-06-07 05:24:48 -04:00
Eric S. Raymond
dda636bbc1
Pull more globals into the game state block.
2017-06-07 05:10:20 -04:00
Eric S. Raymond
91ad0185ff
Move more globals into the game state block.
2017-06-07 01:12:49 -04:00
Eric S. Raymond
62ee15c892
Pack more globals into the game block structure.
2017-06-07 00:41:51 -04:00
Eric S. Raymond
bb78ca96ce
Capture clock variables into the game-state block.
2017-06-07 00:15:31 -04:00
Eric S. Raymond
ab04fe4d41
More more globals into the game state block.
2017-06-06 21:46:17 -04:00
Eric S. Raymond
07c0020a7a
First step in game state encapsulation: the dwarf & pirate locations.
2017-06-06 21:34:11 -04:00
Eric S. Raymond
978168523a
Magic-number elimination.
2017-06-06 11:12:00 -04:00
Eric S. Raymond
fd10d380df
Abstract out NOBJECTS (formerly magic number 100).
2017-06-06 10:44:25 -04:00
Eric S. Raymond
4d6078d8a8
Replace homebrew IABS() with C kubrary labs(3).
2017-06-06 09:21:46 -04:00
Eric S. Raymond
d402e09411
Header consolidation - main.h, misc.h, and share.h merge to advent.h.
...
For a project this small size with a small type ontology, it's better
C style to have one header where all the assumptions about types and
structures are immediately visible.
This is a first step towards turning all that global state into a handful
of structures - probably just two, one saveable as a binary game state.
2017-06-02 15:06:33 -04:00
Jason S. Ninneman
fda1abed97
Remove an obfuscation scheme for the reservoir magic word.
2017-05-29 13:34:34 -07:00
Jason S. Ninneman
519d8f07e6
Really mean it about strict C99 compliance.
2017-05-29 09:30:37 -07:00
Eric S. Raymond
5ae76995d2
Simplify build: nested makefiles considered harmful.
2017-05-29 01:33:59 -04:00
Jason S. Ninneman
f0528b0ded
Move database compilation out into its own tool (for now).
2017-05-28 21:46:54 -07:00
Jason S. Ninneman
df46df6979
Factor out handling of variables populated from the database.
...
This reorganization is a first step toward handling database compilation separately.
2017-05-28 15:42:05 -07:00
Eric S. Raymond
31837249f8
Revert SEED handling and comment orocessing. It broke database compilation.
...
This code is remarkably like the game it implements - a maze of twisty
little FORTRANisms, all alike. Very easy to get lost.
2017-05-24 18:24:09 -04:00
Eric S. Raymond
cf219e920b
Seed command fully implemented but apparently buggy.
...
Dwarf appearance is not yet reproducible.
2017-05-24 09:06:41 -04:00
Eric S. Raymond
65c081a0ac
Implement stub handler for SEED command. Not hooked up to PRNG yet.
2017-05-24 08:30:06 -04:00
Eric S. Raymond
484ca4e9fd
Revert structurization changes, they broke database compilation...
...
...bug showing only if adventure.data was absent. We'll need to sneak up
on this more carefully.
2017-05-24 00:17:19 -04:00
Eric S. Raymond
7e5448e974
More switch reformatting.
2017-05-23 23:17:57 -04:00