1
0
mirror of https://git.zap.org.au/git/trader.git synced 2024-12-04 14:46:45 -05:00

Add the max_turn, game_loaded and game_filename global variables

This commit is contained in:
John Zaitseff 2011-06-29 13:09:40 +10:00
parent add2580fe9
commit bdcdf2f131
2 changed files with 8 additions and 1 deletions

View File

@ -61,7 +61,11 @@ double interest_rate; // Current interest rate
double credit_limit; // Credit limit of current player
int bid_used; // True if bid used for player
int max_turn; // Max. number of turns in game
int turn_number;
int current_player;
int number_players;
int first_player; // Who WAS the first player to go?
int game_loaded; // True if game was loaded from disk
char *game_filename; // Game file filename

View File

@ -41,7 +41,7 @@
#define STAR_RATIO (0.10) /* 10% of map should be stars */
#define NUMBER_MOVES (20) /* Number of choices on map per turn */
#define MAX_TURN (50) /* Max. number of turns per game */
#define DEFAULT_MAX_TURN (50) /* Default number of turns per game */
#define MAX_PLAYERS (8) /* Maximum number of players */
#define INITIAL_CASH (6000.00) /* Initial cash per player */
@ -126,10 +126,13 @@ extern double interest_rate; // Current interest rate
extern double credit_limit; // Credit limit of current player
extern int bid_used; // True if bid used for player
extern int max_turn; // Max. number of turns in game
extern int turn_number;
extern int current_player;
extern int number_players;
extern int first_player; // Who WAS the first player to go?
extern int game_loaded; // True if game was loaded from disk
extern char *game_filename; // Game file filename
#endif /* included_GLOBALS_H */