2004-12-23 21:43:43 +01:00
|
|
|
#ifndef CUP_H
|
|
|
|
#define CUP_H
|
|
|
|
|
|
|
|
#include "bygfoot.h"
|
2004-12-30 17:48:19 +01:00
|
|
|
#include "cup_struct.h"
|
2005-03-14 18:47:27 +01:00
|
|
|
#include "fixture_struct.h"
|
2004-12-23 21:43:43 +01:00
|
|
|
|
2004-12-30 17:48:19 +01:00
|
|
|
Cup
|
|
|
|
cup_new(void);
|
2004-12-23 21:43:43 +01:00
|
|
|
|
2004-12-30 17:48:19 +01:00
|
|
|
gint
|
2005-04-13 15:01:59 +02:00
|
|
|
cup_new_id(gboolean prom_cup);
|
2004-12-23 21:43:43 +01:00
|
|
|
|
2004-12-30 17:48:19 +01:00
|
|
|
CupChooseTeam
|
|
|
|
cup_choose_team_new(void);
|
2004-12-23 21:43:43 +01:00
|
|
|
|
2004-12-30 17:48:19 +01:00
|
|
|
CupRound
|
|
|
|
cup_round_new(void);
|
|
|
|
|
|
|
|
void
|
|
|
|
cup_load_choose_teams(Cup *cup);
|
|
|
|
|
|
|
|
void
|
|
|
|
cup_load_choose_team_user(Cup *cup);
|
|
|
|
|
|
|
|
void
|
|
|
|
cup_choose_team_abort(const Cup *cup, const CupChooseTeam *choose_team, gboolean user);
|
2004-12-23 21:43:43 +01:00
|
|
|
|
2005-01-09 21:21:22 +01:00
|
|
|
GPtrArray*
|
|
|
|
cup_get_team_pointers(const Cup *cup);
|
|
|
|
|
|
|
|
gint
|
|
|
|
cup_get_first_week_of_cup_round(const Cup *cup, gint cup_round);
|
|
|
|
|
|
|
|
gint
|
|
|
|
cup_get_matchdays_in_cup_round(const Cup *cup, gint cup_round);
|
|
|
|
|
|
|
|
gint
|
|
|
|
cup_round_get_number_of_teams(const Cup *cup, gint cup_round);
|
|
|
|
|
2005-03-03 13:46:48 +01:00
|
|
|
Cup*
|
|
|
|
cup_from_clid(gint clid);
|
|
|
|
|
2005-03-14 18:47:27 +01:00
|
|
|
void
|
|
|
|
cup_round_name(const Fixture *fix, gchar *buf);
|
|
|
|
|
2005-04-13 15:01:59 +02:00
|
|
|
GPtrArray*
|
|
|
|
cup_get_teams_sorted(const Cup *cup);
|
|
|
|
|
|
|
|
GPtrArray*
|
|
|
|
cup_get_teams_from_names(GPtrArray *team_names);
|
|
|
|
|
|
|
|
gint
|
|
|
|
cup_compare_success(gconstpointer a, gconstpointer b, gpointer data);
|
|
|
|
|
|
|
|
gint
|
|
|
|
cup_get_round_reached(const Team *tm, const GArray *fixtures);
|
|
|
|
|
2004-12-23 21:43:43 +01:00
|
|
|
#endif
|