1
0
mirror of https://git.zap.org.au/git/trader.git synced 2024-12-04 14:46:45 -05:00
trader/src
John Zaitseff 625f265108 Allow the player to buy and sell shares
This function, trade_shares(), is the last function needed for Star
Traders: the game is now complete.

The current line count is 6667 lines of C code (src/*.[ch]), as compared
with 1657 lines in the CP/M-80 version, 1674 lines in CP/M-86, 4266 lines
in DOS (2225 in the main program) and 4580 lines in Windows 16-bit.
2011-07-19 14:21:32 +10:00
..
exch.c Allow the player to buy and sell shares 2011-07-19 14:21:32 +10:00
exch.h Move the stock exchange and bank functions (to be written) to exch.c 2011-07-16 10:43:19 +10:00
fileio.c Implement the "Save game" player choice; start coding process_move() 2011-07-16 13:34:13 +10:00
fileio.h Move game_load() and game_save() functions to their own source file 2011-07-16 09:58:53 +10:00
game.c Remove a superfluous call to wrefresh() in show_map() 2011-07-18 17:21:54 +10:00
game.h Move the stock exchange and bank functions (to be written) to exch.c 2011-07-16 10:43:19 +10:00
globals.c Remove the global variables selection, credit_limit and bid_used 2011-07-18 16:22:24 +10:00
globals.h Implement the visit_bank() function 2011-07-19 00:38:06 +10:00
help.c Complete the implementation of the process_move() function 2011-07-16 19:23:12 +10:00
help.h Add the prototype and an empty definition for show_help() 2011-07-11 13:57:14 +10:00
intf.c Implement the gettxlong() function to input an integer 2011-07-19 14:15:33 +10:00
intf.h Implement the gettxlong() function to input an integer 2011-07-19 14:15:33 +10:00
Makefile.am Move the stock exchange and bank functions (to be written) to exch.c 2011-07-16 10:43:19 +10:00
move.c Fix a long-standing bug: don't impound more cash than the debt amount! 2011-07-19 00:03:34 +10:00
move.h Rename sel_val_t to selection_t; add values useful for exchange_stock() 2011-07-18 20:16:24 +10:00
README Move the stock exchange and bank functions (to be written) to exch.c 2011-07-16 10:43:19 +10:00
system.h Implement the show_status() and total_value() functions 2011-07-15 17:46:57 +10:00
trader.c Rename sel_val_t to selection_t; add values useful for exchange_stock() 2011-07-18 20:16:24 +10:00
trader.h Move the stock exchange and bank functions (to be written) to exch.c 2011-07-16 10:43:19 +10:00
utils.c Revise the scramble() and unscramble() functions 2011-07-14 12:30:23 +10:00
utils.h Add the scramble() and unscramble() functions 2011-07-11 23:21:10 +10:00

**************************************************************************
*                                                                        *
*              Star Traders: A Game of Interstellar Trading              *
*                 Copyright (C) 1990-2011, John Zaitseff                 *
*                                                                        *
**************************************************************************

This directory, "src", contains the main source code to Star Traders.  The
source code is split up among the following files:

    trader.c    trader.h    - Main program, command-line interface
    globals.c   globals.h   - Global game constants and variables
    game.c      game.h      - Game start and end routines
    move.c      move.h      - Routines for making and processing a move
    exch.c      exch.h      - Stock Exchange and Bank routines
    fileio.c    fileio.h    - Load and save game file routines
    help.c      help.h      - Help text routines: how to play Star Traders
    intf.c      intf.h      - Basic text input/output routines
    utils.c     utils.h     - Utility functions needed by Star Traders
    system.h                - All system header files are included here