bygfoot/src/user_struct.h

59 lines
1.3 KiB
C
Raw Normal View History

#ifndef USER_STRUCT_H
#define USER_STRUCT_H
#include "bygfoot.h"
#include "enums.h"
#include "team_struct.h"
#include "live_game_struct.h"
2005-03-16 21:48:25 +01:00
/** Indices for the money_in array. */
enum MonIn
{
MON_IN_PRIZE = 0,
MON_IN_TICKET,
MON_IN_TRANSFERS,
MON_IN_END
};
/** Indices for the money_out array. */
enum MonOut
{
MON_OUT_WAGE = 0,
MON_OUT_PHYSIO,
MON_OUT_SCOUT,
MON_OUT_JOURNEY,
MON_OUT_STADIUM_IMPROVEMENT,
MON_OUT_STADIUM_BILLS,
MON_OUT_TRANSFERS,
MON_OUT_END
};
/** A structure representing a human player. */
typedef struct
{
/** Username. */
GString *name;
/** The team the user manages. */
Team *tm;
/** User options. */
GArray *options;
2005-03-16 21:48:25 +01:00
/** The user's money, debt, income and expenses.
We have double arrays to store information about
the current and the past week. */
gint money, debt, money_in[2][MON_IN_END],
money_out[2][MON_OUT_END];
/** The attributes shown in the player lists.
@see #PlayerListAttribute
@see #PlayerListAttributeValue */
PlayerListAttribute player_list_attributes[3];
/** The user's scout and physio qualities.
@see #Quality */
gint scout, physio;
/** The font used in treeviews. */
GString *font_name;
/** The variable for the latest user live game. @see #Game */
LiveGame live_game;
} User;
#endif