2004-12-23 13:58:39 +01:00
|
|
|
#include "bygfoot.h"
|
2005-01-09 21:21:22 +01:00
|
|
|
#include "enums.h"
|
|
|
|
#include "live_game_struct.h"
|
2005-03-23 20:03:26 +01:00
|
|
|
#include "option_struct.h"
|
2005-01-09 21:21:22 +01:00
|
|
|
#include "player_struct.h"
|
|
|
|
#include "team_struct.h"
|
2005-03-03 13:46:48 +01:00
|
|
|
#include "user_struct.h"
|
2004-12-23 13:58:39 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The main variable of the game.
|
2004-12-30 17:48:19 +01:00
|
|
|
* @see Country
|
2004-12-23 13:58:39 +01:00
|
|
|
*/
|
|
|
|
Country country;
|
2004-12-30 17:48:19 +01:00
|
|
|
|
|
|
|
/** The season, week and week round numbers.
|
|
|
|
We keep track of the time in the game with these variables. */
|
|
|
|
gint season, week, week_round;
|
|
|
|
|
2005-03-03 13:46:48 +01:00
|
|
|
/** Array of options that get read from
|
|
|
|
bygfoot.conf. */
|
2005-03-23 20:03:26 +01:00
|
|
|
OptionList options;
|
|
|
|
/** Array of constants that get read from the constants
|
2005-03-03 13:46:48 +01:00
|
|
|
file specified in bygfoot.conf. */
|
2005-03-23 20:03:26 +01:00
|
|
|
OptionList constants;
|
2004-12-30 17:48:19 +01:00
|
|
|
|
|
|
|
/** The array containing players to be transfered.
|
|
|
|
@see TransferPlayer */
|
|
|
|
GArray *transfer_list;
|
|
|
|
|
2005-01-09 21:21:22 +01:00
|
|
|
/** These help us keep track of what's happening. */
|
2005-03-11 18:18:51 +01:00
|
|
|
gint status[6];
|
2005-03-03 13:46:48 +01:00
|
|
|
|
2005-03-18 23:03:23 +01:00
|
|
|
/** A pointer we store temporary stuff in. */
|
|
|
|
gpointer statp;
|
|
|
|
|
2005-03-03 13:46:48 +01:00
|
|
|
/** The currently selected rows in the treeviews. */
|
|
|
|
gint selected_row[2];
|
2005-01-09 21:21:22 +01:00
|
|
|
|
2004-12-30 17:48:19 +01:00
|
|
|
/** An array of player names that we keep in memory. */
|
|
|
|
GPtrArray *player_names;
|
|
|
|
|
2005-03-03 13:46:48 +01:00
|
|
|
/** The struct containing the window pointers. */
|
|
|
|
Windows window;
|
2004-12-30 17:48:19 +01:00
|
|
|
|
2005-01-09 21:21:22 +01:00
|
|
|
/** With this we keep track of the number of popup
|
|
|
|
windows and make the main window sensitive or
|
|
|
|
insensitive, depending. */
|
|
|
|
gint popups_active;
|
|
|
|
|
|
|
|
/** The variable for non-user games (which aren't shown). */
|
|
|
|
LiveGame live_game_temp;
|
2005-03-03 13:46:48 +01:00
|
|
|
|
|
|
|
/** The array of human players. @see #User */
|
|
|
|
GArray *users;
|
|
|
|
|
|
|
|
/** The index of the current user in the #users array. */
|
2005-03-18 23:03:23 +01:00
|
|
|
gint cur_user;
|
2005-03-03 13:46:48 +01:00
|
|
|
|
2005-03-17 21:26:01 +01:00
|
|
|
gint timeout_id;
|