bygfoot/src/fixture_struct.h

62 lines
2.0 KiB
C
Raw Normal View History

2005-10-20 17:45:00 +02:00
/*
2005-11-26 17:52:51 +01:00
fixture_struct.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 FIXTURE_STRUCT_H
#define FIXTURE_STRUCT_H
#include "bygfoot.h"
#include "team_struct.h"
/** Structure representing a fixture, or, in other words,
a match. */
typedef struct
{
/** The cup or league the fixture belongs to. */
gint clid;
2005-05-31 16:42:20 +02:00
/** The unique id of the fixture. */
gint id;
2005-01-09 21:21:22 +01:00
/** The round (in a cup) the fixture belongs to. */
gint round;
/** The replay number (ie. how often the match was repeated because of a draw). */
gint replay_number;
2005-01-09 21:21:22 +01:00
/** When it takes place. */
gint week_number, week_round_number;
/** The teams involved. */
Team *teams[2];
/** The number of goals for each team in
regulation, extra time and penalty shoot-out. */
gint result[2][3];
/** Whether there's home advantage, this is second leg,
or the game has to be decided. */
gboolean home_advantage, second_leg, decisive;
/** How many people attended and whether there were
special events. */
gint attendance;
2008-12-01 21:39:16 +01:00
/** Pointer to the live game used for the fixture calculation. */
gpointer live_game;
2005-01-09 21:21:22 +01:00
} Fixture;
#endif