bygfoot/src/user.h

37 lines
684 B
C
Raw Normal View History

2005-01-09 21:21:22 +01:00
#ifndef USER_H
#define USER_H
#include "bygfoot.h"
#include "user_struct.h"
2005-01-09 21:21:22 +01:00
#include "variables.h"
/** Convenience abbrevs. */
#define usr(i) g_array_index(users, User, i)
2005-03-13 16:46:15 +01:00
#define user_games_this_week_round() user_games_in_week_round(week, week_round)
void
user_set_up_team_new_game(User *user);
2005-01-09 21:21:22 +01:00
void
user_set_up_team(User *user);
void
user_set_up_finances(User *user);
User
user_new(void);
2005-01-09 21:21:22 +01:00
void
user_remove(gint idx, gboolean regenerate_team);
2005-01-09 21:21:22 +01:00
void
user_set_player_list_attributes(const User *user, PlayerListAttribute *attribute, gint list_number);
2005-01-09 21:21:22 +01:00
2005-03-13 16:46:15 +01:00
gboolean
user_games_in_week_round(gint week_number, gint week_round_number);
2005-03-14 18:47:27 +01:00
User*
user_from_team(const Team *tm);
2005-01-09 21:21:22 +01:00
#endif