2005-10-20 17:45:00 +02:00
|
|
|
/*
|
2005-11-26 17:52:51 +01:00
|
|
|
lg_commentary.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.
|
|
|
|
*/
|
|
|
|
|
2005-05-18 18:02:14 +02:00
|
|
|
#ifndef LG_COMMENTARY_H
|
|
|
|
#define LG_COMMENTARY_H
|
|
|
|
|
|
|
|
#include "bygfoot.h"
|
|
|
|
#include "fixture_struct.h"
|
2005-07-01 22:51:46 +02:00
|
|
|
#include "lg_commentary_struct.h"
|
2005-05-18 18:02:14 +02:00
|
|
|
#include "live_game_struct.h"
|
|
|
|
|
2005-07-01 22:51:46 +02:00
|
|
|
void
|
2005-10-25 17:26:53 +02:00
|
|
|
lg_commentary_free_tokens(void);
|
2005-06-28 04:08:56 +02:00
|
|
|
|
2005-07-01 22:51:46 +02:00
|
|
|
void
|
|
|
|
lg_commentary_initialize(const Fixture *fix);
|
|
|
|
|
|
|
|
gboolean
|
|
|
|
lg_commentary_check_commentary(const LGCommentary *commentary, gchar *dest);
|
|
|
|
|
2005-07-05 20:37:26 +02:00
|
|
|
gboolean
|
|
|
|
query_lg_commentary_is_repetition(gint id);
|
|
|
|
|
2005-07-01 22:51:46 +02:00
|
|
|
void
|
|
|
|
lg_commentary_get_order(const GArray *commentaries, gint *order);
|
|
|
|
|
|
|
|
void
|
|
|
|
lg_commentary_set_basic_tokens(const LiveGameUnit *unit, const Fixture *fix);;
|
|
|
|
|
|
|
|
void
|
|
|
|
lg_commentary_set_player_tokens(const LiveGameUnit *unit, const Fixture *fix);
|
|
|
|
|
|
|
|
void
|
|
|
|
lg_commentary_set_team_tokens(const LiveGameUnit *unit, const Fixture *fix);
|
2005-06-28 04:08:56 +02:00
|
|
|
|
2005-05-18 18:02:14 +02:00
|
|
|
void
|
2008-11-28 19:10:01 +01:00
|
|
|
lg_commentary_set_stats_tokens(const LiveGameStats *stats, GPtrArray **token_arrays);
|
2005-05-18 18:02:14 +02:00
|
|
|
|
|
|
|
void
|
2005-10-25 17:26:53 +02:00
|
|
|
lg_commentary_generate(const LiveGame *live_game, LiveGameUnit *unit,
|
|
|
|
const gchar *event_name, gint ev_type);
|
2005-05-18 18:02:14 +02:00
|
|
|
|
|
|
|
gchar*
|
|
|
|
lg_commentary_get_extra_data(const LiveGameUnit *unit, const Fixture *fix);
|
|
|
|
|
2005-06-26 13:42:01 +02:00
|
|
|
void
|
|
|
|
lg_commentary_load_commentary_file_from_option(void);
|
2005-05-18 18:02:14 +02:00
|
|
|
|
2005-06-26 13:42:01 +02:00
|
|
|
void
|
|
|
|
lg_commentary_load_commentary_file(const gchar *commentary_file, gboolean abort);
|
|
|
|
|
2005-10-25 17:26:53 +02:00
|
|
|
void
|
|
|
|
lg_commentary_test_load_token_file(const gchar *token_file);
|
|
|
|
|
|
|
|
void
|
|
|
|
lg_commentary_test(const gchar *commentary_file, const gchar* token_file,
|
|
|
|
const gchar *event_name, gint number_of_passes);
|
|
|
|
|
|
|
|
gint
|
|
|
|
lg_commentary_select(const GArray *commentaries, gchar *buf);
|
|
|
|
|
2005-06-26 13:42:01 +02:00
|
|
|
#endif
|