bygfoot/src/fixture_struct.h

36 lines
1.1 KiB
C
Raw Normal View History

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;
/** 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];
2005-04-10 18:34:27 +02:00
/** Names of the teams. Needed when the team
pointers get invalid (e.g. after promotion/relegation) */
GString *team_names[2];
2005-01-09 21:21:22 +01:00
/** 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;
} Fixture;
#endif