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

« back to all changes in this revision

Viewing changes to src/lg_commentary.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 LG_COMMENTARY_H
 
2
#define LG_COMMENTARY_H
 
3
 
 
4
#include "bygfoot.h"
 
5
#include "fixture_struct.h"
 
6
#include "live_game_struct.h"
 
7
 
 
8
/** Tokens that get replaced in the commentary text. */
 
9
enum LGTokens
 
10
{
 
11
    LG_TOKEN_TEAM_HOME = 0,
 
12
    LG_TOKEN_TEAM_AWAY,
 
13
    LG_TOKEN_TEAM_IN_POSS,
 
14
    LG_TOKEN_TEAM_NOT_IN_POSS,
 
15
    LG_TOKEN_TEAM_LOSING,
 
16
    LG_TOKEN_TEAM_WINNING,
 
17
    LG_TOKEN_TEAM,
 
18
    LG_TOKEN_ATTENDANCE,
 
19
    LG_TOKEN_PLAYER1,
 
20
    LG_TOKEN_PLAYER2,
 
21
    LG_TOKEN_RESULT,
 
22
    LG_TOKEN_MINUTE,
 
23
    LG_TOKEN_EXTRA,
 
24
    LG_TOKEN_END
 
25
};
 
26
 
 
27
gchar*
 
28
lg_commentary_get_player_name(const LiveGameUnit *unit, const Fixture *fix, gint player);
 
29
 
 
30
void
 
31
lg_commentary_set_strings(gchar *strings[][2], const LiveGameUnit *unit, const Fixture *fix);
 
32
 
 
33
void
 
34
lg_commentary_generate(LiveGameUnit *unit, const Fixture *fix);
 
35
 
 
36
GPtrArray*
 
37
lg_commentary_get_commentaries(gint event_type);
 
38
 
 
39
gchar*
 
40
lg_commentary_get_extra_data(const LiveGameUnit *unit, const Fixture *fix);
 
41
 
 
42
gboolean
 
43
lg_commentary_replace_tokens(const gchar *string, gchar *strings[][2], gchar *dest);
 
44
 
 
45
#endif
 
46