home · contact · privacy
plomrogue
11 years agoAdded primitive inventory system. Any objects may now own/contain/carry other objects.
Christian Heller [Mon, 7 Oct 2013 00:08:28 +0000 (02:08 +0200)]
Added primitive inventory system. Any objects may now own/contain/carry other objects.

11 years agoChanged the way the end of the map object list is identified.
Christian Heller [Wed, 2 Oct 2013 09:24:10 +0000 (11:24 +0200)]
Changed the way the end of the map object list is identified.

11 years agoFixed README typo.
Christian Heller [Thu, 26 Sep 2013 03:13:06 +0000 (05:13 +0200)]
Fixed README typo.

11 years agoNew animate map objects are never placed on a square with other animated map objects...
Christian Heller [Thu, 26 Sep 2013 03:00:09 +0000 (05:00 +0200)]
New animate map objects are never placed on a square with other animated map objects; also fixed a bug that hindered compilation.

11 years agoThe player is now a map object like any other. All actor contacts now lead to violenc...
Christian Heller [Thu, 26 Sep 2013 02:39:21 +0000 (04:39 +0200)]
The player is now a map object like any other. All actor contacts now lead to violence, not just those between player and non-players.

11 years agoFixed referencing non-tracked map object definitions file.
Christian Heller [Wed, 25 Sep 2013 22:44:57 +0000 (00:44 +0200)]
Fixed referencing non-tracked map object definitions file.

11 years agoSimplified adding new objects to map.
Christian Heller [Wed, 25 Sep 2013 22:40:48 +0000 (00:40 +0200)]
Simplified adding new objects to map.

11 years agoCorrected line lengths.
Christian Heller [Mon, 23 Sep 2013 02:07:02 +0000 (04:07 +0200)]
Corrected line lengths.

11 years agoRe-wrote map object system to use same structs for items and monsters, and switched...
Christian Heller [Mon, 23 Sep 2013 01:55:49 +0000 (03:55 +0200)]
Re-wrote map object system to use same structs for items and monsters, and switched to plain-text savefile.

11 years agoMinor refactoring of meta_control().
Christian Heller [Thu, 19 Sep 2013 19:26:29 +0000 (21:26 +0200)]
Minor refactoring of meta_control().

11 years agoUnified (and heavily re-factored) (un-)loading/saving of keybindings and window confi...
Christian Heller [Thu, 19 Sep 2013 19:21:13 +0000 (21:21 +0200)]
Unified (and heavily re-factored) (un-)loading/saving of keybindings and window confiugrations. They were heavily entangled anyways.

11 years agoIndividual map objects are now identified by unique numbers stored in the savefiles...
Christian Heller [Thu, 19 Sep 2013 14:37:59 +0000 (16:37 +0200)]
Individual map objects are now identified by unique numbers stored in the savefiles, so they may in the future reference each other (instead of just volatile memory addresses).

11 years agoAdded appropriate inventory window config file.
Christian Heller [Tue, 17 Sep 2013 03:27:27 +0000 (05:27 +0200)]
Added appropriate inventory window config file.

11 years agoAdded dummy inventory window.
Christian Heller [Tue, 17 Sep 2013 03:26:21 +0000 (05:26 +0200)]
Added dummy inventory window.

11 years agoCenter map on player at game start.
Christian Heller [Tue, 17 Sep 2013 03:15:26 +0000 (05:15 +0200)]
Center map on player at game start.

11 years agoChanged default keybindings.
Christian Heller [Tue, 17 Sep 2013 02:51:02 +0000 (04:51 +0200)]
Changed default keybindings.

11 years agoAlso save active window selection in windows config.
Christian Heller [Tue, 17 Sep 2013 02:48:33 +0000 (04:48 +0200)]
Also save active window selection in windows config.

11 years agoRe-modelled draw_kb_view() on draw_titled_keybinding_list() model, lots of re-factori...
Christian Heller [Tue, 17 Sep 2013 02:23:48 +0000 (04:23 +0200)]
Re-modelled draw_kb_view() on draw_titled_keybinding_list() model, lots of re-factorisation among those two; also added "(none)" display for empty keybinding lists in keybinding configuration windows.

11 years agoNew window "Available keys" shows keybindings available on current selection.
Christian Heller [Tue, 17 Sep 2013 01:13:24 +0000 (03:13 +0200)]
New window "Available keys" shows keybindings available on current selection.

11 years agoStrongly overhauled keybinding managemment. Window-specific keybindings and a window...
Christian Heller [Sun, 15 Sep 2013 04:14:41 +0000 (06:14 +0200)]
Strongly overhauled keybinding managemment. Window-specific keybindings and a window keybinding configuration view are now available. Changed lots of stuff peripheral to this issue here and there, too.

11 years agoMade keybindings array into linked list; on the way rewrote / improved great parts...
Christian Heller [Fri, 13 Sep 2013 14:36:32 +0000 (16:36 +0200)]
Made keybindings array into linked list; on the way rewrote / improved great parts of keybindings library and some directly or indirectly connected code.

11 years agoAdded anti-hardcoding todo.
Christian Heller [Sun, 8 Sep 2013 14:32:43 +0000 (16:32 +0200)]
Added anti-hardcoding todo.

11 years agoFixed memory handling bug.
Christian Heller [Sun, 8 Sep 2013 14:15:56 +0000 (16:15 +0200)]
Fixed memory handling bug.

11 years agoCorrected comment spellings and line lengths in code.
Christian Heller [Sun, 8 Sep 2013 14:03:31 +0000 (16:03 +0200)]
Corrected comment spellings and line lengths in code.

11 years agoAll members of structs Win and WinMeta are now officially visible externally, removed...
Christian Heller [Sun, 8 Sep 2013 14:01:31 +0000 (16:01 +0200)]
All members of structs Win and WinMeta are now officially visible externally, removed "_" prefixes.

11 years agoSilently ignore characters in config/windows/toggle_order to which no window exists.
Christian Heller [Sun, 8 Sep 2013 13:18:07 +0000 (15:18 +0200)]
Silently ignore characters in config/windows/toggle_order to which no window exists.

11 years agoImproved error message precision in init_winconf_from_file().
Christian Heller [Sun, 8 Sep 2013 13:10:29 +0000 (15:10 +0200)]
Improved error message precision in init_winconf_from_file().

11 years agoRepaired erroneous previous commit and added check for validity of draw function...
Christian Heller [Sun, 8 Sep 2013 13:03:50 +0000 (15:03 +0200)]
Repaired erroneous previous commit and added check for validity of draw function identifier read from win config file.

11 years agoWindows are no longer hardcoded. Winconf files now contain a draw function identifier.
Christian Heller [Sun, 8 Sep 2013 12:49:56 +0000 (14:49 +0200)]
Windows are no longer hardcoded. Winconf files now contain a draw function identifier.

11 years agoRemoved unneeded function; also some minor comment improvmenets.
Christian Heller [Sun, 8 Sep 2013 10:27:35 +0000 (12:27 +0200)]
Removed unneeded function; also some minor comment improvmenets.

11 years agoSimplified window configuration view.
Christian Heller [Sun, 8 Sep 2013 10:15:11 +0000 (12:15 +0200)]
Simplified window configuration view.

11 years agoHeavy refactoring of all file I/O and some memory handling; also repaired some incons...
Christian Heller [Thu, 5 Sep 2013 04:08:48 +0000 (06:08 +0200)]
Heavy refactoring of all file I/O and some memory handling; also repaired some inconsistencies via the resulting standardizations.

11 years agoMoved textfile_sizes() to readwrite library.
Christian Heller [Wed, 4 Sep 2013 01:38:13 +0000 (03:38 +0200)]
Moved textfile_sizes() to readwrite library.

11 years agoImproved and defined more precisely textfile_sizes().
Christian Heller [Wed, 4 Sep 2013 01:25:34 +0000 (03:25 +0200)]
Improved and defined more precisely textfile_sizes().

11 years agoRemoved some superfluous calloc()/malloc() calls.
Christian Heller [Wed, 4 Sep 2013 00:59:57 +0000 (02:59 +0200)]
Removed some superfluous calloc()/malloc() calls.

11 years agoMostly cosmetic changes to various file reading/writing functions for greater readibi...
Christian Heller [Wed, 4 Sep 2013 00:44:39 +0000 (02:44 +0200)]
Mostly cosmetic changes to various file reading/writing functions for greater readibility.

11 years agoCoupled create_winconfs() and init_winconfs() that were only called as a couple anyhow.
Christian Heller [Tue, 3 Sep 2013 14:35:46 +0000 (16:35 +0200)]
Coupled create_winconfs() and init_winconfs() that were only called as a couple anyhow.

11 years agoCorrected off-by-one error in windows.c:refit_pad() that lead to failure of subpad...
Christian Heller [Tue, 3 Sep 2013 14:29:19 +0000 (16:29 +0200)]
Corrected off-by-one error in windows.c:refit_pad() that lead to failure of subpad memory allocation.

11 years agoWindow configuration can now be saved; and edited in a special window config view...
Christian Heller [Mon, 2 Sep 2013 04:01:41 +0000 (06:01 +0200)]
Window configuration can now be saved; and edited in a special window config view available on each window. Also simplified how init_win() interprets size parameters.

11 years agoHeavily re-structured initialization of windows and how individual windows are identi...
Christian Heller [Sun, 1 Sep 2013 02:05:13 +0000 (04:05 +0200)]
Heavily re-structured initialization of windows and how individual windows are identified to facilitate future plans for editing window configurations.

11 years agoFixed bug that freed non-existing map objects, triggered segfaults.
Christian Heller [Sat, 31 Aug 2013 13:46:12 +0000 (15:46 +0200)]
Fixed bug that freed non-existing map objects, triggered segfaults.

11 years agoFixed bug that reset turn number to 1 on each savefile load.
Christian Heller [Sat, 31 Aug 2013 13:42:22 +0000 (15:42 +0200)]
Fixed bug that reset turn number to 1 on each savefile load.

11 years agoFixed off-by-one error encountered while changing default key for 'reload_wins' command.
Christian Heller [Sat, 31 Aug 2013 03:34:46 +0000 (05:34 +0200)]
Fixed off-by-one error encountered while changing default key for 'reload_wins' command.

11 years agoNew command: type Z to reload default window configuration from window config files.
Christian Heller [Sat, 31 Aug 2013 03:24:32 +0000 (05:24 +0200)]
New command: type Z to reload default window configuration from window config files.

11 years agoImproved error handling, more error catching, error messages.
Christian Heller [Sat, 31 Aug 2013 02:30:41 +0000 (04:30 +0200)]
Improved error handling, more error catching, error messages.

11 years agoMoved freeing of winmeta into windows library.
Christian Heller [Sat, 31 Aug 2013 01:53:28 +0000 (03:53 +0200)]
Moved freeing of winmeta into windows library.

11 years agoImproved windows cleaning up: free win_meta, ncurses windows/pads.
Christian Heller [Sat, 31 Aug 2013 01:34:13 +0000 (03:34 +0200)]
Improved windows cleaning up: free win_meta, ncurses windows/pads.

11 years agoWhile adding cleaning up / freeing of map objects, fixed bug that initialized map...
Christian Heller [Sat, 31 Aug 2013 00:35:23 +0000 (02:35 +0200)]
While adding cleaning up / freeing of map objects, fixed bug that initialized map objects twice if game was started in first round, but savefile already existed.

11 years agoRemove debugging code that prohibited the game from starting.
Christian Heller [Fri, 30 Aug 2013 23:48:45 +0000 (01:48 +0200)]
Remove debugging code that prohibited the game from starting.

11 years agoAt clean-up, free memory of map object definitions, too.
Christian Heller [Fri, 30 Aug 2013 23:48:01 +0000 (01:48 +0200)]
At clean-up, free memory of map object definitions, too.

11 years agoMoved allocation and freeing of Win structs into windows library.
Christian Heller [Fri, 30 Aug 2013 23:20:21 +0000 (01:20 +0200)]
Moved allocation and freeing of Win structs into windows library.

11 years agoCorrected window title creation.
Christian Heller [Fri, 30 Aug 2013 08:21:16 +0000 (10:21 +0200)]
Corrected window title creation.

11 years agoCleaned up memory allocation by Win initialization.
Christian Heller [Fri, 30 Aug 2013 00:18:44 +0000 (02:18 +0200)]
Cleaned up memory allocation by Win initialization.

11 years agoAdded memory sanitation TODO.
Christian Heller [Fri, 30 Aug 2013 00:01:25 +0000 (02:01 +0200)]
Added memory sanitation TODO.

11 years agoAdded a forgotten free().
Christian Heller [Thu, 29 Aug 2013 23:59:09 +0000 (01:59 +0200)]
Added a forgotten free().

11 years agoClean up memory allocated for Win structs.
Christian Heller [Thu, 29 Aug 2013 23:54:40 +0000 (01:54 +0200)]
Clean up memory allocated for Win structs.

11 years agoAlso read window title from config/windows/ files. To facilitate that, also corrected...
Christian Heller [Thu, 29 Aug 2013 23:19:05 +0000 (01:19 +0200)]
Also read window title from config/windows/ files. To facilitate that, also corrected some init_win() behavior.

11 years agoMoved window configuration files into their own config/windows/ subdirectory.
Christian Heller [Thu, 29 Aug 2013 22:57:33 +0000 (00:57 +0200)]
Moved window configuration files into their own config/windows/ subdirectory.

11 years agoRead in initial window sizes from files below config/.
Christian Heller [Thu, 29 Aug 2013 22:55:38 +0000 (00:55 +0200)]
Read in initial window sizes from files below config/.

11 years agoNegative values may now be passed to init_win() for sizes in negative relation to...
Christian Heller [Thu, 29 Aug 2013 22:06:40 +0000 (00:06 +0200)]
Negative values may now be passed to init_win() for sizes in negative relation to the terminal screen size.

11 years agoPass height=0 to init_win() to make window as wide as the terminal screen. Also did...
Christian Heller [Thu, 29 Aug 2013 21:28:56 +0000 (23:28 +0200)]
Pass height=0 to init_win() to make window as wide as the terminal screen. Also did some minor code re-structuring around the calls of init_win() in main().

11 years agoAdded file config/toggle_win_order.
Christian Heller [Thu, 29 Aug 2013 20:58:57 +0000 (22:58 +0200)]
Added file config/toggle_win_order.

11 years agoRead default order of windows from file config/toggle_win_order.
Christian Heller [Thu, 29 Aug 2013 20:49:48 +0000 (22:49 +0200)]
Read default order of windows from file config/toggle_win_order.

11 years agoMoved several windows control functions from misc library into new wincontrol library.
Christian Heller [Thu, 29 Aug 2013 20:05:05 +0000 (22:05 +0200)]
Moved several windows control functions from misc library into new wincontrol library.

11 years agoLet's see if this provides better pseudo-randomness.
Christian Heller [Thu, 29 Aug 2013 04:05:13 +0000 (06:05 +0200)]
Let's see if this provides better pseudo-randomness.

11 years agoUpdated README on default keybindings.
Christian Heller [Thu, 29 Aug 2013 02:52:24 +0000 (04:52 +0200)]
Updated README on default keybindings.

11 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.

11 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.

11 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.

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

11 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.

11 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.

11 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.

11 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.

11 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.

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

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

11 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.

11 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.

11 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.

11 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.

11 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.

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

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

11 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.

11 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.

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

11 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().

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

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

11 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().

11 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".

11 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().

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

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

11 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.

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

11 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.

11 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.

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