bygfoot/src/variables.h

152 lines
3.8 KiB
C
Raw Normal View History

2005-10-20 17:45:00 +02:00
/*
2005-11-26 17:52:51 +01:00
variables.h
2005-10-20 17:45:00 +02:00
Bygfoot Football Manager -- a small and simple GTK2-based
football management game.
http://bygfoot.sourceforge.net
Copyright (C) 2005 Gyözö Both (gyboth@bygfoot.com)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
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"
2008-11-27 14:24:18 +01:00
#include "news_struct.h"
2005-03-23 20:03:26 +01:00
#include "option_struct.h"
2004-12-23 13:58:39 +01:00
/**
* The main variable of the game.
* @see Country
2004-12-23 13:58:39 +01:00
*/
Country country;
/**
* List of all non-user countries.
* @see Country
*/
GPtrArray *country_list;
2005-04-04 12:36:04 +02:00
/** The array of human players. @see #User */
GArray *users;
/** The season, week and week round numbers.
We keep track of the time in the game with these variables. */
gint season, week, week_round;
/** 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
file specified in bygfoot.conf. */
2005-03-23 20:03:26 +01:00
OptionList constants;
2005-05-06 18:35:19 +02:00
/** Array of constants affecting game appearance rather than
behaviour. */
OptionList constants_app;
2005-06-26 13:42:01 +02:00
/** Array with internal settings. */
OptionList settings;
2005-10-24 22:50:48 +02:00
/* Array holding string replacement tokens. */
OptionList tokens;
2005-06-26 13:42:01 +02:00
/** The array containing the live game commentary strings. */
2005-07-01 22:51:46 +02:00
GArray *lg_commentary[LIVE_GAME_EVENT_END];
2008-11-27 14:24:18 +01:00
/** The array containing the news article strings. */
GArray *news[NEWS_ARTICLE_TYPE_END];
2008-11-28 15:09:08 +01:00
/** Newspaper containing the news articles. */
NewsPaper newspaper;
/** The array containing players to be transfered.
@see TransferPlayer */
GArray *transfer_list;
2005-05-01 12:16:14 +02:00
/** Array with season statistics (updated at the
end of each season. */
GArray *season_stats;
2005-10-24 22:50:48 +02:00
/** Array of available CPU strategies. */
GArray *strategies;
2005-10-27 23:10:15 +02:00
/** Array of current and recent bets. */
GArray *bets[2];
2008-11-06 09:03:09 +01:00
/** Loan interest for the current week. */
gfloat current_interest;
/** Array of jobs in the job exchange. */
GArray *jobs;
2005-04-07 18:44:33 +02:00
/** Some counters we use. */
gint counters[COUNT_END];
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-18 23:03:23 +01:00
/** A pointer we store temporary stuff in. */
gpointer statp;
2005-07-08 11:26:00 +02:00
/** The currently selected row in the treeview. */
gint selected_row;
2005-01-09 21:21:22 +01:00
/** An array of name lists. */
GArray *name_lists;
/** The struct containing the window pointers. */
Windows window;
2008-12-01 21:39:16 +01:00
/** The variables for non-user live games (which aren't shown). */
GArray *live_games;
/** The index of the current user in the #users array. */
2005-03-18 23:03:23 +01:00
gint cur_user;
2005-03-17 21:26:01 +01:00
gint timeout_id;
2005-04-04 12:36:04 +02:00
GRand *rand_generator;
2005-10-27 23:10:15 +02:00
2009-04-29 19:18:54 +02:00
/** Debug information. */
gint debug_level, debug_output;
2005-04-04 12:36:04 +02:00
/**
The list of directories the file_find_support_file() function
searches for support files (e.g. pixmaps or text files).
@see file_find_support_file()
@see file_add_support_directory_recursive()
*/
GList *support_directories;
/**
* The list of root defintions directories found (ending in definitions)
*/
GList *root_definitions_directories;
/**
* The list of defintions directories found
*/
GList *definitions_directories;
2005-04-04 12:36:04 +02:00
/** The name of the current save file (gets updated when a game is
saved or loaded). */
2005-10-09 11:35:44 +02:00
gchar *save_file;
2005-07-17 13:55:33 +02:00
/** Whether we are using a Unix system or Windows. */
gboolean os_is_unix;
2006-02-15 13:03:48 +01:00
/** The hints displayed in the splash screen. */
OptionList hints;