bygfoot/src/news.h

86 lines
2.1 KiB
C
Raw Normal View History

2008-11-27 14:24:18 +01:00
/*
news.h
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.
*/
#ifndef NEWS_H
#define NEWS_H
#include "bygfoot.h"
#include "news_struct.h"
2008-11-28 15:09:08 +01:00
void
news_free_tokens(void);
2008-11-27 14:24:18 +01:00
2008-11-28 15:09:08 +01:00
void
2008-12-01 21:39:16 +01:00
news_set_match_tokens(const LiveGame *live_game);
2008-11-27 14:24:18 +01:00
2008-11-28 15:09:08 +01:00
void
2008-12-01 21:39:16 +01:00
news_generate_match(const LiveGame *live_game);
2008-11-27 14:24:18 +01:00
2008-11-28 15:09:08 +01:00
void
news_select(const GArray *news_array, gchar *title, gchar *subtitle,
2008-12-16 12:27:44 +01:00
gint *article_id, gint *title_id, gint *subtitle_id);
2008-11-27 14:24:18 +01:00
2008-11-28 15:09:08 +01:00
gint
news_get_title(const GArray *titles, gchar *title, gint *order,
2008-12-18 13:07:59 +01:00
gboolean is_title, gboolean ignore_repetition, gint to_check);
2008-11-27 14:24:18 +01:00
2008-11-28 15:09:08 +01:00
gboolean
2008-12-16 12:27:44 +01:00
news_check_article_for_repetition(gint id);
gboolean
2008-12-18 13:07:59 +01:00
news_check_title_for_repetition(gint id, gboolean is_title, gint to_check);
2008-11-27 14:24:18 +01:00
void
news_load_news_file_from_option(void);
void
news_load_news_file(const gchar *news_file, gboolean abort);
2008-11-28 15:09:08 +01:00
void
news_titles_get_order(const GArray *titles, gint *order);
2008-11-27 14:24:18 +01:00
2008-12-01 21:39:16 +01:00
gboolean
news_check_match_relevant(const LiveGame *live_game);
void
news_set_scorer_tokens(const LiveGameStats *stats);
void
news_set_league_cup_tokens(const Fixture *fix);
void
news_set_fixture_tokens(const Fixture *fix);
2008-11-27 14:24:18 +01:00
2008-12-06 09:01:43 +01:00
void
news_set_rank_tokens(const Fixture *fix);
2008-12-07 12:28:18 +01:00
void
news_articles_get_order(const GArray *articles, gint *order);
2008-12-07 13:45:33 +01:00
void
news_set_streak_tokens(const Fixture *fix);
2008-11-27 14:24:18 +01:00
#endif