mirror of
https://git.zap.org.au/git/trader.git
synced 2024-12-04 14:46:45 -05:00
Rearrange the order of some global variables
Rearrange some global variables for consistency with initialisation in init_game() and load_game().
This commit is contained in:
parent
1c502d671c
commit
3f96e587aa
@ -57,16 +57,16 @@ player_info_t player[MAX_PLAYERS]; // Array of players
|
|||||||
map_val_t galaxy_map[MAX_X][MAX_Y]; // Map of the galaxy
|
map_val_t galaxy_map[MAX_X][MAX_Y]; // Map of the galaxy
|
||||||
move_rec_t game_move[NUMBER_MOVES]; // Current moves
|
move_rec_t game_move[NUMBER_MOVES]; // Current moves
|
||||||
|
|
||||||
|
int max_turn; // Max. number of turns in game
|
||||||
|
int turn_number;
|
||||||
|
int number_players;
|
||||||
|
int current_player;
|
||||||
|
int first_player; // Who WAS the first player to go?
|
||||||
|
|
||||||
double interest_rate; // Current interest rate
|
double interest_rate; // Current interest rate
|
||||||
double credit_limit; // Credit limit of current player
|
double credit_limit; // Credit limit of current player
|
||||||
bool bid_used; // True if bid used for player
|
bool 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?
|
|
||||||
|
|
||||||
bool game_loaded = false; // True if game was loaded from disk
|
bool game_loaded = false; // True if game was loaded from disk
|
||||||
int game_num = 0; // Game number (1-9)
|
int game_num = 0; // Game number (1-9)
|
||||||
|
|
||||||
|
@ -127,16 +127,16 @@ extern player_info_t player[MAX_PLAYERS]; // Array of players
|
|||||||
extern map_val_t galaxy_map[MAX_X][MAX_Y]; // Map of the galaxy
|
extern map_val_t galaxy_map[MAX_X][MAX_Y]; // Map of the galaxy
|
||||||
extern move_rec_t game_move[NUMBER_MOVES]; // Current moves
|
extern move_rec_t game_move[NUMBER_MOVES]; // Current moves
|
||||||
|
|
||||||
|
extern int max_turn; // Max. number of turns in game
|
||||||
|
extern int turn_number;
|
||||||
|
extern int number_players;
|
||||||
|
extern int current_player;
|
||||||
|
extern int first_player; // Who WAS the first player to go?
|
||||||
|
|
||||||
extern double interest_rate; // Current interest rate
|
extern double interest_rate; // Current interest rate
|
||||||
extern double credit_limit; // Credit limit of current player
|
extern double credit_limit; // Credit limit of current player
|
||||||
extern bool bid_used; // True if bid used for player
|
extern bool 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 bool game_loaded; // True if game was loaded from disk
|
extern bool game_loaded; // True if game was loaded from disk
|
||||||
extern int game_num; // Game number (1-9)
|
extern int game_num; // Game number (1-9)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user