home · contact · privacy
plomrogue
10 years agoUpdated README on default keybindings.
Christian Heller [Thu, 29 Aug 2013 02:52:24 +0000 (04:52 +0200)]
Updated README on default keybindings.

10 years agoUse command IDs from command DB as what is recorded in record file.
Christian Heller [Thu, 29 Aug 2013 02:20:25 +0000 (04:20 +0200)]
Use command IDs from command DB as what is recorded in record file.

10 years agoCommands are now to be managed by a Command DB, not by passing around arbitrary strings.
Christian Heller [Thu, 29 Aug 2013 01:15:25 +0000 (03:15 +0200)]
Commands are now to be managed by a Command DB, not by passing around arbitrary strings.

10 years agoMoved config files into config/ directory.
Christian Heller [Wed, 28 Aug 2013 22:17:34 +0000 (00:17 +0200)]
Moved config files into config/ directory.

10 years agoCorrected includes in main.c
Christian Heller [Wed, 28 Aug 2013 03:43:10 +0000 (05:43 +0200)]
Corrected includes in main.c

10 years agoAll control action is moved from main() to the control library.
Christian Heller [Wed, 28 Aug 2013 03:28:50 +0000 (05:28 +0200)]
All control action is moved from main() to the control library.

10 years agoSome cleaning up and comments added to outsourcing misc library stuff into control...
Christian Heller [Wed, 28 Aug 2013 01:27:26 +0000 (03:27 +0200)]
Some cleaning up and comments added to outsourcing misc library stuff into control library.

10 years agoMoved meta_keys() into new library "control" to soon include all key-press processing.
Christian Heller [Wed, 28 Aug 2013 01:23:39 +0000 (03:23 +0200)]
Moved meta_keys() into new library "control" to soon include all key-press processing.

10 years agoSimplified meta_keys() interface by managing all windows stuff below World struct.
Christian Heller [Wed, 28 Aug 2013 01:11:05 +0000 (03:11 +0200)]
Simplified meta_keys() interface by managing all windows stuff below World struct.

10 years agoFixed bug that corrupted record files.
Christian Heller [Wed, 28 Aug 2013 00:22:58 +0000 (02:22 +0200)]
Fixed bug that corrupted record files.

10 years agoImproved comments.
Christian Heller [Tue, 27 Aug 2013 03:48:08 +0000 (05:48 +0200)]
Improved comments.

10 years agoImproved comments.
Christian Heller [Tue, 27 Aug 2013 03:47:35 +0000 (05:47 +0200)]
Improved comments.

10 years agoRe-wrote draw_info_win() to be more flexible in allocating memory for the string...
Christian Heller [Tue, 27 Aug 2013 03:45:03 +0000 (05:45 +0200)]
Re-wrote draw_info_win() to be more flexible in allocating memory for the string to be drawn.

10 years agoPlayer earns a score by killing enemies.
Christian Heller [Tue, 27 Aug 2013 03:32:32 +0000 (05:32 +0200)]
Player earns a score by killing enemies.

10 years agoUse strtok() to tokenize "def" file entries.
Christian Heller [Tue, 27 Aug 2013 03:02:36 +0000 (05:02 +0200)]
Use strtok() to tokenize "def" file entries.

10 years agoKilled monsters evolve into corpse items.
Christian Heller [Tue, 27 Aug 2013 02:37:23 +0000 (04:37 +0200)]
Killed monsters evolve into corpse items.

10 years agoRepaired last commit and provided more consistent variable names.
Christian Heller [Tue, 27 Aug 2013 01:46:45 +0000 (03:46 +0200)]
Repaired last commit and provided more consistent variable names.

10 years agoRe-factored move_player().
Christian Heller [Tue, 27 Aug 2013 01:43:57 +0000 (03:43 +0200)]
Re-factored move_player().

10 years agoRefactored move_monster().
Christian Heller [Tue, 27 Aug 2013 01:15:55 +0000 (03:15 +0200)]
Refactored move_monster().

10 years agoUise uint32_t to test for a value going beyond UINT16_MAX.
Christian Heller [Tue, 27 Aug 2013 00:39:15 +0000 (02:39 +0200)]
Uise uint32_t to test for a value going beyond UINT16_MAX.

10 years agoImproved error description in windows library.
Christian Heller [Mon, 26 Aug 2013 16:12:25 +0000 (18:12 +0200)]
Improved error description in windows library.

10 years agoAdded TODO to windows library.
Christian Heller [Mon, 26 Aug 2013 10:49:03 +0000 (12:49 +0200)]
Added TODO to windows library.

10 years agoDon't update more windows than necessary in resize_active_win().
Christian Heller [Mon, 26 Aug 2013 10:47:08 +0000 (12:47 +0200)]
Don't update more windows than necessary in resize_active_win().

10 years agoRemoved redundant comment.
Christian Heller [Mon, 26 Aug 2013 03:09:28 +0000 (05:09 +0200)]
Removed redundant comment.

10 years agoRemoved unnecessary condition.
Christian Heller [Mon, 26 Aug 2013 02:36:45 +0000 (04:36 +0200)]
Removed unnecessary condition.

10 years agoCorrected description of cycle_active_window().
Christian Heller [Mon, 26 Aug 2013 02:34:42 +0000 (04:34 +0200)]
Corrected description of cycle_active_window().

10 years agoFor consistency mirror the replacement of "n" with "f" in cycle_active_win with a...
Christian Heller [Mon, 26 Aug 2013 02:33:55 +0000 (04:33 +0200)]
For consistency mirror the replacement of "n" with "f" in cycle_active_win with a replacement of "p" with "b".

10 years agoChanged letter controlling forward movement in cycle_active_win().
Christian Heller [Mon, 26 Aug 2013 02:33:17 +0000 (04:33 +0200)]
Changed letter controlling forward movement in cycle_active_win().

10 years agoImproved comments in windows library.
Christian Heller [Mon, 26 Aug 2013 02:18:45 +0000 (04:18 +0200)]
Improved comments in windows library.

10 years agoImproved windows library header comments.
Christian Heller [Mon, 26 Aug 2013 02:12:19 +0000 (04:12 +0200)]
Improved windows library header comments.

10 years agoImproved comments in windows library header file.
Christian Heller [Mon, 26 Aug 2013 02:08:44 +0000 (04:08 +0200)]
Improved comments in windows library header file.

10 years agoImproved explanation of init_win().
Christian Heller [Mon, 26 Aug 2013 02:00:20 +0000 (04:00 +0200)]
Improved explanation of init_win().

10 years agoImproved windows library header file comments.
Christian Heller [Mon, 26 Aug 2013 01:54:44 +0000 (03:54 +0200)]
Improved windows library header file comments.

10 years agoImproved comments for windows library header file.
Christian Heller [Mon, 26 Aug 2013 01:48:05 +0000 (03:48 +0200)]
Improved comments for windows library header file.

10 years agoRemoved duplicated code.
Christian Heller [Mon, 26 Aug 2013 01:38:24 +0000 (03:38 +0200)]
Removed duplicated code.

10 years agoImproved comments for windows library header file.
Christian Heller [Mon, 26 Aug 2013 01:37:07 +0000 (03:37 +0200)]
Improved comments for windows library header file.

10 years agoImprovement of windows library header file comments.
Christian Heller [Mon, 26 Aug 2013 01:11:58 +0000 (03:11 +0200)]
Improvement of windows library header file comments.

10 years agoImproved windows library intro comment.
Christian Heller [Mon, 26 Aug 2013 01:06:28 +0000 (03:06 +0200)]
Improved windows library intro comment.

10 years agoCorrected spelling error in comment text.
Christian Heller [Mon, 26 Aug 2013 01:01:43 +0000 (03:01 +0200)]
Corrected spelling error in comment text.

10 years agoImproved comment description of exit_err().
Christian Heller [Mon, 26 Aug 2013 01:00:39 +0000 (03:00 +0200)]
Improved comment description of exit_err().

10 years agoexit_err() now also prints the internal error code.
Christian Heller [Mon, 26 Aug 2013 00:54:35 +0000 (02:54 +0200)]
exit_err() now also prints the internal error code.

10 years agoAdded new class of errors to windows library to ensure yx_uint16-compatible maximum...
Christian Heller [Mon, 26 Aug 2013 00:33:43 +0000 (02:33 +0200)]
Added new class of errors to windows library to ensure yx_uint16-compatible maximum size for virtual screen.

10 years agoRe-structured externally visible windows library structs to more visibly separate...
Christian Heller [Sun, 25 Aug 2013 23:27:05 +0000 (01:27 +0200)]
Re-structured externally visible windows library structs to more visibly separate internal from external members.

10 years agoIn windows librarly, Only internally used members of structs externally available...
Christian Heller [Sun, 25 Aug 2013 23:11:46 +0000 (01:11 +0200)]
In windows librarly, Only internally used members of structs externally available have their name prefixed with _.

10 years agoImproved checking for only one of savefile / record file existing.
Christian Heller [Sun, 25 Aug 2013 03:43:01 +0000 (05:43 +0200)]
Improved checking for only one of savefile / record file existing.

10 years agoOnly make exit_err() output errno message if errno is actually set.
Christian Heller [Sun, 25 Aug 2013 03:03:55 +0000 (05:03 +0200)]
Only make exit_err() output errno message if errno is actually set.

10 years agoImproved error message phrasings.
Christian Heller [Sun, 25 Aug 2013 02:58:52 +0000 (04:58 +0200)]
Improved error message phrasings.

10 years agoCorrected lack of some specific error messages.
Christian Heller [Sun, 25 Aug 2013 02:16:27 +0000 (04:16 +0200)]
Corrected lack of some specific error messages.

10 years agoRemoved debugging code corrupting last commit.
Christian Heller [Sun, 25 Aug 2013 02:05:48 +0000 (04:05 +0200)]
Removed debugging code corrupting last commit.

10 years agoerr_exit() now prints errno message, too.
Christian Heller [Sun, 25 Aug 2013 02:04:14 +0000 (04:04 +0200)]
err_exit() now prints errno message, too.

10 years agoCorrected minor spelling error.
Christian Heller [Sat, 24 Aug 2013 04:53:16 +0000 (06:53 +0200)]
Corrected minor spelling error.

10 years agoReformatted map_objects.h to ensure max line length of 80 chars.
Christian Heller [Sat, 24 Aug 2013 04:26:08 +0000 (06:26 +0200)]
Reformatted map_objects.h to ensure max line length of 80 chars.

10 years agoAdded further (though rarely informative) handling of windows library error.
Christian Heller [Sat, 24 Aug 2013 04:21:02 +0000 (06:21 +0200)]
Added further (though rarely informative) handling of windows library error.

10 years agoAdded generic default error message to exit_err().
Christian Heller [Sat, 24 Aug 2013 04:09:54 +0000 (06:09 +0200)]
Added generic default error message to exit_err().

10 years agoAdded handling of windows errors in main().
Christian Heller [Sat, 24 Aug 2013 04:04:18 +0000 (06:04 +0200)]
Added handling of windows errors in main().

10 years agoshift_active_win() returns error code of its update_wins() call.
Christian Heller [Sat, 24 Aug 2013 03:47:11 +0000 (05:47 +0200)]
shift_active_win() returns error code of its update_wins() call.

10 years agodraw_all_wins() returns error code of its draw_scroll_hint() uses.
Christian Heller [Sat, 24 Aug 2013 03:43:10 +0000 (05:43 +0200)]
draw_all_wins() returns error code of its draw_scroll_hint() uses.

10 years agoRemoved fragment of old shift_active_win(), moved one explanatory comment from it...
Christian Heller [Sat, 24 Aug 2013 03:14:34 +0000 (05:14 +0200)]
Removed fragment of old shift_active_win(), moved one explanatory comment from it to new one.

10 years agoRe-wrote shift_active_win() to manipulate chain by merely changing the chain pointers...
Christian Heller [Sat, 24 Aug 2013 03:10:43 +0000 (05:10 +0200)]
Re-wrote shift_active_win() to manipulate chain by merely changing the chain pointers instead of actually re-building the whole window chain. Uses new internal helper functions shift_win_forward() / shift_win_backward().

10 years agoCorrected comment in shift_active_win().
Christian Heller [Sat, 24 Aug 2013 00:08:58 +0000 (02:08 +0200)]
Corrected comment in shift_active_win().

10 years agoAdded memory allocation error checks to windows library.
Christian Heller [Fri, 23 Aug 2013 02:35:33 +0000 (04:35 +0200)]
Added memory allocation error checks to windows library.

10 years agoImproved formatting and include comments in windows.c
Christian Heller [Wed, 21 Aug 2013 19:54:14 +0000 (21:54 +0200)]
Improved formatting and include comments in windows.c

10 years agoImproved formatting and comments for yx_uint16.h
Christian Heller [Wed, 21 Aug 2013 19:33:35 +0000 (21:33 +0200)]
Improved formatting and comments for yx_uint16.h

10 years agoPass pointers to yx_uint16 structs to yx_uint16_cmp() instead of structs themselves.
Christian Heller [Wed, 21 Aug 2013 19:17:15 +0000 (21:17 +0200)]
Pass pointers to yx_uint16 structs to yx_uint16_cmp() instead of structs themselves.

10 years agoUse uint8_t for yx_uin16_cmp() return code.
Christian Heller [Wed, 21 Aug 2013 19:13:04 +0000 (21:13 +0200)]
Use uint8_t for yx_uin16_cmp() return code.

10 years agoRe-styled code.
Christian Heller [Wed, 21 Aug 2013 19:10:05 +0000 (21:10 +0200)]
Re-styled code.

10 years agoIn read_map_objects() and write_map_objects(), return error code right on error,...
Christian Heller [Wed, 21 Aug 2013 18:41:07 +0000 (20:41 +0200)]
In read_map_objects() and write_map_objects(), return error code right on error, not only after collecting further possible errors.

10 years agoMinor corrections in error message phrasings and comments.
Christian Heller [Wed, 21 Aug 2013 18:29:32 +0000 (20:29 +0200)]
Minor corrections in error message phrasings and comments.

10 years agoAt game start, check for recordfile_tmp or savegame_tmp to detected aborted/corrupted...
Christian Heller [Wed, 21 Aug 2013 18:27:18 +0000 (20:27 +0200)]
At game start, check for recordfile_tmp or savegame_tmp to detected aborted/corrupted record / game saving processes.

10 years agomain() handles file IO now safely, exits on errors; also analogously re-phrased error...
Christian Heller [Wed, 21 Aug 2013 18:15:01 +0000 (20:15 +0200)]
main() handles file IO now safely, exits on errors; also analogously re-phrased error messages in save_game(), turn_over().

10 years agoApplied new safer file saving method to record file in turn_over(), too, added error...
Christian Heller [Wed, 21 Aug 2013 17:32:56 +0000 (19:32 +0200)]
Applied new safer file saving method to record file in turn_over(), too, added error messages there and also corrected error messages in save_game().

10 years agoSmall refactoring for greater readability.
Christian Heller [Wed, 21 Aug 2013 17:23:34 +0000 (19:23 +0200)]
Small refactoring for greater readability.

10 years agoRe-factoring of save_game() for greater readability.
Christian Heller [Wed, 21 Aug 2013 17:22:39 +0000 (19:22 +0200)]
Re-factoring of save_game() for greater readability.

10 years agoCosmetic reformatting of save_game() code.
Christian Heller [Wed, 21 Aug 2013 03:52:44 +0000 (05:52 +0200)]
Cosmetic reformatting of save_game() code.

10 years agoSave game to a temp file first before overwriting old savefile.
Christian Heller [Wed, 21 Aug 2013 03:32:04 +0000 (05:32 +0200)]
Save game to a temp file first before overwriting old savefile.

10 years agoIn save_game(), error-exit on earliest of writing errors, not after cascade of them.
Christian Heller [Wed, 21 Aug 2013 03:14:20 +0000 (05:14 +0200)]
In save_game(), error-exit on earliest of writing errors, not after cascade of them.

10 years agoMore expressive error messages in save_game().
Christian Heller [Wed, 21 Aug 2013 03:03:26 +0000 (05:03 +0200)]
More expressive error messages in save_game().

10 years agoIn save_game(), check for error return code of fclose(), too.
Christian Heller [Wed, 21 Aug 2013 02:54:47 +0000 (04:54 +0200)]
In save_game(), check for error return code of fclose(), too.

10 years agoAdded newline to end of error messages.
Christian Heller [Wed, 21 Aug 2013 02:52:45 +0000 (04:52 +0200)]
Added newline to end of error messages.

10 years agoMinor refactoring of save_game().
Christian Heller [Wed, 21 Aug 2013 02:50:48 +0000 (04:50 +0200)]
Minor refactoring of save_game().

10 years agosave_game() now checks for the error return code of opening the savefile.
Christian Heller [Wed, 21 Aug 2013 02:50:07 +0000 (04:50 +0200)]
save_game() now checks for the error return code of opening the savefile.

10 years agoMinor comment clarification.
Christian Heller [Tue, 20 Aug 2013 18:24:30 +0000 (20:24 +0200)]
Minor comment clarification.

10 years agoCorrected unused bit number check.
Christian Heller [Tue, 20 Aug 2013 14:41:39 +0000 (16:41 +0200)]
Corrected unused bit number check.

10 years agoDecided against externing read/write_uintX_bigendian(); therefore dropped redundant...
Christian Heller [Tue, 20 Aug 2013 14:17:23 +0000 (16:17 +0200)]
Decided against externing read/write_uintX_bigendian(); therefore dropped redundant bit number check therein.

10 years agoUse "uint8_t" instead of "unsigned char".
Christian Heller [Thu, 15 Aug 2013 15:32:36 +0000 (17:32 +0200)]
Use "uint8_t" instead of "unsigned char".

10 years agoMore comments on readwrite library; some refactoring ideas included.
Christian Heller [Thu, 15 Aug 2013 15:21:07 +0000 (17:21 +0200)]
More comments on readwrite library; some refactoring ideas included.

10 years agoAdded explanatory comments to readwrite library.
Christian Heller [Thu, 15 Aug 2013 11:43:53 +0000 (13:43 +0200)]
Added explanatory comments to readwrite library.

10 years agoRenamed all "fail" variables to "err", to reduce line lengths.
Christian Heller [Thu, 15 Aug 2013 11:36:58 +0000 (13:36 +0200)]
Renamed all "fail" variables to "err", to reduce line lengths.

10 years agoBuilt error checking into file reading/writing routines and calls of them.
Christian Heller [Wed, 14 Aug 2013 10:58:48 +0000 (12:58 +0200)]
Built error checking into file reading/writing routines and calls of them.

10 years agoMove checking for error results into exit_err(), out of conditionals in the remaining...
Christian Heller [Wed, 14 Aug 2013 09:35:12 +0000 (11:35 +0200)]
Move checking for error results into exit_err(), out of conditionals in the remaining code.

10 years agoReference map only through world struct.
Christian Heller [Wed, 14 Aug 2013 01:11:36 +0000 (03:11 +0200)]
Reference map only through world struct.

10 years agoMade game exiting and cleaning up more flexible. Provided so far unused exit-on-error...
Christian Heller [Wed, 14 Aug 2013 01:04:53 +0000 (03:04 +0200)]
Made game exiting and cleaning up more flexible. Provided so far unused exit-on-error function.

10 years agoCorrected indentation / line lengths.
Christian Heller [Tue, 6 Aug 2013 04:16:37 +0000 (06:16 +0200)]
Corrected indentation / line lengths.

10 years agoSimplified interface of (build/read/write)_map_objects() by making them decide by...
Christian Heller [Tue, 6 Aug 2013 04:09:00 +0000 (06:09 +0200)]
Simplified interface of (build/read/write)_map_objects() by making them decide by themselves how to type-specifically handle each map object.

10 years agoinit_win() now takes arguments for the designated window height and width.
Christian Heller [Tue, 6 Aug 2013 02:45:23 +0000 (04:45 +0200)]
init_win() now takes arguments for the designated window height and width.

10 years agoMoved pseudo-random generator into its own library, simplified its interface and...
Christian Heller [Tue, 6 Aug 2013 02:19:06 +0000 (04:19 +0200)]
Moved pseudo-random generator into its own library, simplified its interface and internals.

10 years agoImproved TODO.
Christian Heller [Tue, 30 Jul 2013 03:10:40 +0000 (05:10 +0200)]
Improved TODO.

10 years agoMade the hierarchy between terminal screen, virtual screen, "pad", its frame etc...
Christian Heller [Tue, 30 Jul 2013 03:01:01 +0000 (05:01 +0200)]
Made the hierarchy between terminal screen, virtual screen, "pad", its frame etc. more logic by renamings and comments.

10 years agoCopied to draw_win_borderlines() and draw_wins_borderlines() from draw_wins_bordercor...
Christian Heller [Tue, 30 Jul 2013 02:20:47 +0000 (04:20 +0200)]
Copied to draw_win_borderlines() and draw_wins_borderlines() from draw_wins_bordercorners() the mechanism of passing the virtual screen pad directly instead of infering it via wgetparent().

10 years agoRadically simplified drawing of window border corners.
Christian Heller [Tue, 30 Jul 2013 02:15:07 +0000 (04:15 +0200)]
Radically simplified drawing of window border corners.