John Zaitseff
1beb2003ef
Remove the global variables selection, credit_limit and bid_used
2011-07-18 16:22:24 +10:00
John Zaitseff
546c80053f
Add the --no-color (and --no-colour) command-line options
2011-07-14 20:19:04 +10:00
John Zaitseff
39d6bc5b37
Add the abort_game global variable
...
The abort_game variable allows the program to abort the game without
showing the final winner.
2011-07-14 15:11:53 +10:00
John Zaitseff
cdaeb2e869
Add the init_game() function that initialises the actual game
2011-07-11 16:14:07 +10:00
John Zaitseff
c0943b9f7d
Move (and abstract) the random number functions to utils.c
2011-07-04 17:13:29 +10:00
John Zaitseff
4d5c5b70ca
Add the functions init_program() and end_program()
2011-07-04 15:45:03 +10:00
John Zaitseff
4f62ef1b58
Add simple functions to manage a stack of Curses windows
2011-07-04 12:41:30 +10:00
John Zaitseff
2a3e18460e
Rename intto_game_filename() to game_filename()
2011-07-04 10:28:50 +10:00
John Zaitseff
d9ff917835
Rename MIN_COLUMNS to MIN_COLS for consistency with the COLS variable
...
Also define WIN_COLS and WIN_LINES: the current version of Star Traders
will only use this number of lines and columns in a terminal window. All
calls to newwin() need to have COL_OFFSET and LINE_OFFSET added to the X
and Y starting positions to make this work.
2011-07-02 23:19:40 +10:00
John Zaitseff
abd196d2c5
Add the basic I/O functions init_screen(), end_screen() and center()
2011-07-02 21:25:57 +10:00
John Zaitseff
0af905e1d9
Use PACKAGE_NAME where appropriate
2011-07-02 21:19:51 +10:00
John Zaitseff
6c90801102
Add the err_exit() and errno_exit() functions
2011-07-02 14:23:35 +10:00
John Zaitseff
162062cbfb
Rearrange the __attribute__ compiler directive
...
The __attribute__ compiler directive should be placed AFTER a function
prototype, as per the GNU C Compiler manual.
2011-07-02 14:01:32 +10:00
John Zaitseff
e8bdcfe304
Remove premature provisions for internationalisation
...
In particular, remove the use of the "_" macro: real internationalisation
may require this macro in a different form from that used here.
2011-07-02 10:01:37 +10:00
John Zaitseff
ba721ced10
Be stricter about saved game numbers
2011-07-02 09:39:23 +10:00
John Zaitseff
ee94d86b57
Add some more definitions, especially for the Curses library
2011-06-30 21:52:55 +10:00
John Zaitseff
9453cfc402
Use the C99 <stdbool.h> header file
2011-06-30 21:11:36 +10:00
John Zaitseff
3a4c95f927
Add the SysV-compatible curses library
...
The AX_WITH_CURSES macro is taken from the autoconf-archive project,
available at http://www.gnu.org/software/autoconf-archive/ .
2011-06-30 20:31:19 +10:00
John Zaitseff
d6050858d9
Add the __attribute__((noreturn)) function specifier where possible
2011-06-30 16:09:13 +10:00
John Zaitseff
7fa5833fb6
Complete the command line argument processing routines
2011-06-30 15:25:30 +10:00
John Zaitseff
255dc9aa19
Add the process_cmdline(), show_version() and show_usage() functions
2011-06-29 13:15:26 +10:00
John Zaitseff
6910370557
Add various header files
...
Add the system.h header file for all system header includes, and utils.c
and utils.h for various low-level utility functions.
2011-06-15 22:34:28 +10:00
John Zaitseff
38d7a0e022
Add missing #include directives
2011-06-14 23:19:58 +10:00
John Zaitseff
305be1e852
Add a simple main() routine for testing
2011-06-14 23:02:16 +10:00
John Zaitseff
3187aaf10c
Remove superfluous version and date information
2011-06-14 23:01:15 +10:00
John Zaitseff
c39b6019e2
Remove quote characters surrounding filenames
2011-06-14 21:59:48 +10:00
John Zaitseff
f66fb88c69
Create preliminary versions of the source code and manual page
2011-06-14 18:19:01 +10:00