~ubuntu-branches/ubuntu/jaunty/bygfoot/jaunty

« back to all changes in this revision

Viewing changes to src/fixture_struct.h

  • Committer: Bazaar Package Importer
  • Author(s): Isaac Clerencia
  • Date: 2005-07-05 23:53:40 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050705235340-akpef5bdm7gsm9m4
Tags: 1.9.0-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef FIXTURE_STRUCT_H
 
2
#define FIXTURE_STRUCT_H
 
3
 
 
4
#include "bygfoot.h"
 
5
#include "team_struct.h"
 
6
 
 
7
/** Structure representing a fixture, or, in other words,
 
8
    a match. */
 
9
typedef struct
 
10
{
 
11
    /** The cup or league the fixture belongs to. */
 
12
    gint clid;
 
13
    /** The unique id of the fixture. */
 
14
    gint id;
 
15
    /** The round (in a cup) the fixture belongs to. */
 
16
    gint round;    
 
17
    /** The replay number (ie. how often the match was repeated because of a draw). */
 
18
    gint replay_number;
 
19
    /** When it takes place. */
 
20
    gint week_number, week_round_number;
 
21
    /** The teams involved. */
 
22
    Team *teams[2];
 
23
    /** Ids of the teams. Needed when the team
 
24
        pointers get invalid (e.g. after promotion/relegation). */
 
25
    gint team_ids[2];
 
26
    /** The number of goals for each team in
 
27
        regulation, extra time and penalty shoot-out. */
 
28
    gint result[2][3];
 
29
    /** Whether there's home advantage, this is second leg,
 
30
        or the game has to be decided. */
 
31
    gboolean home_advantage, second_leg, decisive;
 
32
    /** How many people attended and whether there were
 
33
        special events. */
 
34
    gint attendance;
 
35
} Fixture;
 
36
 
 
37
#endif