home · contact · privacy
Christian Heller [Sat, 15 Jun 2013 01:22:06 +0000 (03:22 +0200)]
Removed unused variable.
Christian Heller [Sat, 15 Jun 2013 01:21:22 +0000 (03:21 +0200)]
More consistency in shortening names.
Christian Heller [Sat, 15 Jun 2013 01:05:41 +0000 (03:05 +0200)]
Removed superfluous loop.
Christian Heller [Sat, 15 Jun 2013 01:01:02 +0000 (03:01 +0200)]
Some renamings to make names eat up less window space.
Christian Heller [Sat, 15 Jun 2013 00:22:33 +0000 (02:22 +0200)]
More descriptive comment.
Christian Heller [Sat, 15 Jun 2013 00:13:03 +0000 (02:13 +0200)]
Unite all scroll hint drawing functions into one.
Christian Heller [Fri, 14 Jun 2013 23:15:08 +0000 (01:15 +0200)]
Reorganized Win and WinMeta structs to use a common struct to organize curses window and sizes.
Christian Heller [Wed, 12 Jun 2013 23:48:02 +0000 (01:48 +0200)]
Minor style correction.
Christian Heller [Wed, 12 Jun 2013 23:31:30 +0000 (01:31 +0200)]
Use yx_uint16 struct for WinMeta and Win struct size attributes.
Christian Heller [Wed, 12 Jun 2013 23:14:32 +0000 (01:14 +0200)]
Use yx_uint16 struct for Win struct start coordinates.
Christian Heller [Wed, 12 Jun 2013 23:07:56 +0000 (01:07 +0200)]
Renamed yx type to more precisely reflect its data structure.
Christian Heller [Wed, 12 Jun 2013 23:03:36 +0000 (01:03 +0200)]
A yx struct is no longer needed to temporarily store calculated coordinates.
Christian Heller [Wed, 12 Jun 2013 22:58:22 +0000 (00:58 +0200)]
Use a Win struct starty attribute too, instead of endlessly calling getbegy on curses win.
Christian Heller [Wed, 12 Jun 2013 22:53:51 +0000 (00:53 +0200)]
Use new startx attribute of Win struct instead of getbegx on respective curses window.
Christian Heller [Wed, 12 Jun 2013 22:50:15 +0000 (00:50 +0200)]
Slightly shortened window shifting code.
Christian Heller [Wed, 12 Jun 2013 22:47:41 +0000 (00:47 +0200)]
Added startx attribute to Win struct to allow for less pad refitting code.
Christian Heller [Mon, 10 Jun 2013 08:38:03 +0000 (10:38 +0200)]
Minor intendation correction.
Christian Heller [Mon, 10 Jun 2013 08:33:03 +0000 (10:33 +0200)]
Modularized windows.c subsystem by moving anything not supposed to be public into the scopy of windows.c only.
Christian Heller [Mon, 10 Jun 2013 07:46:28 +0000 (09:46 +0200)]
Abstract pad scrolling; windows.c only checks for validity of new pad offset, doesn't generate the new offset itself.
Christian Heller [Mon, 10 Jun 2013 07:31:05 +0000 (09:31 +0200)]
Removed unneeded line.
Christian Heller [Mon, 10 Jun 2013 07:26:38 +0000 (09:26 +0200)]
Don't call update_windows() unnecessarily just for resizing the pad.
Christian Heller [Fri, 7 Jun 2013 22:45:04 +0000 (00:45 +0200)]
Fixed bug: Pad did not get shrunk with window suspension, leading to obsolete scrollable areas.
Christian Heller [Fri, 7 Jun 2013 22:30:50 +0000 (00:30 +0200)]
Corrected what valgrind complains about.
Christian Heller [Fri, 7 Jun 2013 22:04:32 +0000 (00:04 +0200)]
Corrected vertical scroll hint counting.
Christian Heller [Thu, 6 Jun 2013 10:56:37 +0000 (12:56 +0200)]
Made vertical scroll hint more informative.
Christian Heller [Thu, 6 Jun 2013 10:33:13 +0000 (12:33 +0200)]
Ignore rightmost border column.
Christian Heller [Thu, 6 Jun 2013 10:31:51 +0000 (12:31 +0200)]
Removed uncommented line.
Christian Heller [Thu, 6 Jun 2013 10:31:18 +0000 (12:31 +0200)]
Added pad scrolling hints.
Christian Heller [Thu, 6 Jun 2013 10:10:30 +0000 (12:10 +0200)]
Only allow movement rightwards if pad is big enough.
Christian Heller [Thu, 6 Jun 2013 10:04:19 +0000 (12:04 +0200)]
Keybindings window now shows scrolling information.
Christian Heller [Thu, 6 Jun 2013 07:59:40 +0000 (09:59 +0200)]
To generate starting positions on passable terrain, a lot of code resctructuring was necessary, and minor improvements were added here and there in the course.
Christian Heller [Thu, 6 Jun 2013 07:03:18 +0000 (09:03 +0200)]
Corrected parentheses.
Christian Heller [Mon, 3 Jun 2013 19:28:05 +0000 (21:28 +0200)]
Improved map generation algorithm.
Christian Heller [Mon, 3 Jun 2013 17:58:57 +0000 (19:58 +0200)]
-s takes optional argument: number of turn from which to start replay.
Christian Heller [Mon, 3 Jun 2013 17:10:47 +0000 (19:10 +0200)]
Don't abort replay on last turn.
Christian Heller [Mon, 3 Jun 2013 17:06:29 +0000 (19:06 +0200)]
Use more descriptive variable name.
Christian Heller [Mon, 3 Jun 2013 17:02:51 +0000 (19:02 +0200)]
Corrected minor inconsistencies.
Christian Heller [Thu, 30 May 2013 00:02:51 +0000 (02:02 +0200)]
Added info on new recording system to README.
Christian Heller [Thu, 30 May 2013 00:00:08 +0000 (02:00 +0200)]
Added a gameplay recording system and restructured everything to make it fit in.
Christian Heller [Wed, 29 May 2013 22:39:20 +0000 (00:39 +0200)]
Start with windows toggled on and put into a sensible starting configuration.
Christian Heller [Wed, 29 May 2013 22:27:04 +0000 (00:27 +0200)]
Restructured main() start. Start with empty log.
Christian Heller [Wed, 29 May 2013 03:46:38 +0000 (05:46 +0200)]
Corrected comments.
Christian Heller [Wed, 29 May 2013 03:33:55 +0000 (05:33 +0200)]
Updated README to reflect last hours' changes.
Christian Heller [Wed, 29 May 2013 03:28:28 +0000 (05:28 +0200)]
Renamed functions to reflect change from seed files system to game save files system.
Christian Heller [Wed, 29 May 2013 03:26:45 +0000 (05:26 +0200)]
Working towards roguelike permadeath conventions: Saving happens automatically now at each new turn.
Christian Heller [Wed, 29 May 2013 03:17:14 +0000 (05:17 +0200)]
Re-seed rrand() with a new but predictable seed each new turn.
Christian Heller [Wed, 29 May 2013 03:13:03 +0000 (05:13 +0200)]
Replaced seed file system with a game save file system.
Christian Heller [Wed, 29 May 2013 02:30:11 +0000 (04:30 +0200)]
As init_map() doesn't need the seed anymore, it's no longer a parameter.
Christian Heller [Wed, 29 May 2013 02:28:29 +0000 (04:28 +0200)]
Always load seed file if it exists. Don't provide a default one.
Christian Heller [Wed, 29 May 2013 01:56:41 +0000 (03:56 +0200)]
Seed rrand() at start of main() instead of inside init_map().
Christian Heller [Wed, 29 May 2013 01:51:40 +0000 (03:51 +0200)]
Removed unused variable start value.
Christian Heller [Wed, 29 May 2013 01:48:38 +0000 (03:48 +0200)]
Changed world geometry and repaired a var type incompatibility bug.
Christian Heller [Wed, 29 May 2013 01:33:30 +0000 (03:33 +0200)]
Don't hardcode size of unsigned chars.
Christian Heller [Tue, 28 May 2013 03:46:24 +0000 (05:46 +0200)]
Updated README to reflect current game status.
Christian Heller [Tue, 28 May 2013 03:43:14 +0000 (05:43 +0200)]
Don't save and load maps, save and load seeds of maps. Load via command line option.
Christian Heller [Sun, 26 May 2013 03:59:35 +0000 (05:59 +0200)]
Don't use variables for what's not variable.
Christian Heller [Sun, 26 May 2013 03:31:44 +0000 (05:31 +0200)]
Moved seed initialization into rrand().
Christian Heller [Sun, 26 May 2013 02:40:24 +0000 (04:40 +0200)]
Use own pseudo-random number generator to ensure portable predictability.
Christian Heller [Sat, 25 May 2013 23:55:18 +0000 (01:55 +0200)]
Added experimental map loading / saving.
Christian Heller [Sat, 25 May 2013 00:31:07 +0000 (02:31 +0200)]
Use stdint.h typedefs for ints.
Christian Heller [Fri, 24 May 2013 22:21:29 +0000 (00:21 +0200)]
Removed accidentally committed object file.
Christian Heller [Thu, 23 May 2013 10:04:49 +0000 (12:04 +0200)]
Moved keybindings manipulation stuff into its own library.
Christian Heller [Thu, 23 May 2013 09:34:53 +0000 (11:34 +0200)]
Moved draw_*_win() into its own library. Removed some unneeded libray includes.
Christian Heller [Thu, 23 May 2013 09:13:18 +0000 (11:13 +0200)]
Renamed functions for greater stylistic consistency.
Christian Heller [Thu, 23 May 2013 09:04:33 +0000 (11:04 +0200)]
Minor code restyling.
Christian Heller [Thu, 23 May 2013 09:03:32 +0000 (11:03 +0200)]
init_window() now initializes Win.data and Win.draw, too
Christian Heller [Fri, 17 May 2013 00:59:04 +0000 (02:59 +0200)]
Renamed shift_window() to shift_active_window() for more precise description and consistency with names of comparable functions.
Christian Heller [Fri, 17 May 2013 00:57:00 +0000 (02:57 +0200)]
Restructured window resizing. windows.c now only contains a general resize with width/height values, while growing/shrinking by 1 is handled inside roguelike.c
Christian Heller [Fri, 17 May 2013 00:39:19 +0000 (02:39 +0200)]
Removed reference to unused library.
Christian Heller [Fri, 17 May 2013 00:37:51 +0000 (02:37 +0200)]
init_win_meta() now defaults to knowledge of no window being active.
Christian Heller [Fri, 17 May 2013 00:36:59 +0000 (02:36 +0200)]
resize_window() now does its own check for existence of active window.
Christian Heller [Fri, 17 May 2013 00:33:18 +0000 (02:33 +0200)]
Scrolling pad now also has its own function with its own sanity checks.
Christian Heller [Fri, 17 May 2013 00:24:36 +0000 (02:24 +0200)]
Moved map scrolling into its own function with its own sanity checks.
Christian Heller [Fri, 17 May 2013 00:14:28 +0000 (02:14 +0200)]
Moved check for existence of active window into shift_window().
Christian Heller [Fri, 17 May 2013 00:11:43 +0000 (02:11 +0200)]
Moved check for existence of active window inside cycle_active_window().
Christian Heller [Fri, 17 May 2013 00:07:46 +0000 (02:07 +0200)]
Renaming for code-stylistic consistency.
Christian Heller [Fri, 17 May 2013 00:06:12 +0000 (02:06 +0200)]
Moved into own function moving up/down in keybindings window selection and test for its legality.
Christian Heller [Thu, 16 May 2013 23:58:15 +0000 (01:58 +0200)]
Moved key mod process into its own function for the reason defined in the previous commit message.
Christian Heller [Thu, 16 May 2013 23:48:07 +0000 (01:48 +0200)]
Starting to move all multi-line actions in key command loop into their own functions. Starting with wait action.
Christian Heller [Thu, 16 May 2013 01:41:20 +0000 (03:41 +0200)]
The monster moves. Contact between monster and player entails hitting each other.
Christian Heller [Thu, 16 May 2013 00:49:18 +0000 (02:49 +0200)]
Added monster. Doesn't do much; only blocks the way so far.
Christian Heller [Thu, 16 May 2013 00:30:12 +0000 (02:30 +0200)]
Map is now somewhat randomized.
Christian Heller [Thu, 16 May 2013 00:29:01 +0000 (02:29 +0200)]
Corrected mixed up coordinates.
Christian Heller [Tue, 14 May 2013 03:17:12 +0000 (05:17 +0200)]
Forgot to check for success of current move in comparison with previous one.
Christian Heller [Tue, 14 May 2013 02:56:52 +0000 (04:56 +0200)]
For further steps into the same direction, only add "." to the last message.
Christian Heller [Tue, 14 May 2013 02:47:00 +0000 (04:47 +0200)]
Put check on player's ability of moving on a square into own function. Checking for terrain types too.
Christian Heller [Tue, 14 May 2013 02:14:48 +0000 (04:14 +0200)]
Moved player moving logic into its own function and added log message about inability to move.
Christian Heller [Tue, 14 May 2013 01:26:41 +0000 (03:26 +0200)]
Minor code restyling.
Christian Heller [Sun, 12 May 2013 22:00:27 +0000 (00:00 +0200)]
Use pointers instead of putting the whole struct on the stack.
Christian Heller [Sun, 12 May 2013 21:55:49 +0000 (23:55 +0200)]
Restyling of roguelike.c, and added prototypes for functions.
Christian Heller [Sun, 12 May 2013 21:38:48 +0000 (23:38 +0200)]
Restructured map / player data, linked them into world struct.
Christian Heller [Sun, 12 May 2013 21:26:21 +0000 (23:26 +0200)]
Minor code restyling.
Christian Heller [Sun, 12 May 2013 21:24:09 +0000 (23:24 +0200)]
Minor code restyling. Important: Renamed win->curses_win to win->curses.
Christian Heller [Sun, 12 May 2013 21:14:57 +0000 (23:14 +0200)]
Add windows vertically before adding them horizontally even inside of columns.
Christian Heller [Sat, 11 May 2013 09:35:08 +0000 (11:35 +0200)]
Simplified keybindings initialization, using stdlib functions, unusing math functions.
Christian Heller [Sat, 11 May 2013 08:24:25 +0000 (10:24 +0200)]
Made if-else-order more clear.
Christian Heller [Sat, 11 May 2013 08:10:33 +0000 (10:10 +0200)]
Removed line that was already commented out and is no longer needed.
Christian Heller [Sat, 11 May 2013 08:09:02 +0000 (10:09 +0200)]
Log is now saved in world struct, not in win_log.
Christian Heller [Fri, 10 May 2013 23:43:18 +0000 (01:43 +0200)]
Turn is now part of world struct, instead of being saved in win_info.data
Christian Heller [Thu, 2 May 2013 14:29:36 +0000 (16:29 +0200)]
List dependencies.