bygfoot/src/live_game.h

144 lines
2.9 KiB
C
Raw Normal View History

2005-10-20 17:45:00 +02:00
/*
2005-11-26 17:52:51 +01:00
live_game.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-01-09 21:21:22 +01:00
#ifndef LIVE_GAME_H
#define LIVE_GAME_H
#include "bygfoot.h"
#include "live_game_struct.h"
void
live_game_calculate_fixture(Fixture *fix);
2005-07-01 22:51:46 +02:00
void
live_game_initialize(Fixture *fix);
2005-01-09 21:21:22 +01:00
gboolean
query_live_game_event_is_break(gint minute, gint time);
gboolean
query_live_game_penalties_over(void);
gint
live_game_get_break(void);
gint
live_game_get_time(const LiveGameUnit *unit);
gint
live_game_get_minute(void);
2005-10-20 17:45:00 +02:00
gint
live_game_get_minutes_remaining(const LiveGameUnit *unit);
2005-01-09 21:21:22 +01:00
void
live_game_create_unit(void);
void
live_game_fill_new_unit(LiveGameUnit *new);
void
live_game_create_start_unit(void);
void
live_game_evaluate_unit(LiveGameUnit *unit);
void
2005-03-08 09:25:46 +01:00
live_game_event_foul(void);
2005-01-09 21:21:22 +01:00
void
live_game_event_lost_possession(void);
void
2005-01-24 19:01:55 +01:00
live_game_event_injury(gint team, gint player, gboolean create_new);
2005-01-09 21:21:22 +01:00
void
live_game_event_stadium(void);
void
live_game_event_scoring_chance(void);
void
live_game_event_penalty();
void
live_game_event_general(gboolean create_new);
2005-01-24 19:01:55 +01:00
void
live_game_event_general_get_players(void);
2005-01-09 21:21:22 +01:00
void
live_game_event_free_kick(void);
void
2005-03-09 14:10:28 +01:00
live_game_event_send_off(gint team, gint player, gboolean second_yellow);
2005-01-09 21:21:22 +01:00
void
live_game_event_duel(void);
gboolean
query_live_game_second_yellow(gint team, gint player);
void
2005-04-04 12:36:04 +02:00
live_game_reset(LiveGame *live_game, Fixture *fix, gboolean free_variable);
2005-01-09 21:21:22 +01:00
gint
live_game_unit_get_minute(const LiveGameUnit *unit);
2005-01-24 19:01:55 +01:00
gint
live_game_get_area(const LiveGameUnit *unit);
gfloat
live_game_pit_teams(const LiveGameUnit *unit, gfloat exponent);
void
2005-03-08 09:25:46 +01:00
live_game_injury_get_player(void);
void
live_game_resume(void);
void
live_game_event_substitution(gint team_number, gint sub_in, gint sub_out);
void
live_game_event_team_change(gint team_number, gint event_type);
2005-01-24 19:01:55 +01:00
2005-03-09 15:02:49 +01:00
void
live_game_finish_unit(void);
2005-03-11 13:17:48 +01:00
LiveGameUnit*
live_game_unit_before(const LiveGameUnit* unit, gint gap);
2005-05-19 10:31:47 +02:00
gint
live_game_event_get_verbosity(gint event_type);
2005-08-20 21:39:36 +02:00
void
live_game_unit_result_to_buf(const LiveGameUnit *unit, gchar *buf, gboolean swap);
2005-10-01 10:12:06 +02:00
gint
live_game_penalties_taken(void);
2005-01-09 21:21:22 +01:00
#endif