project_files/frontlib/model/team.h
changeset 8262 f01702bfb764
parent 8260 83d85e32c713
child 8330 aaefa587e277
equal deleted inserted replaced
8260:83d85e32c713 8262:f01702bfb764
    47 	char *binding;
    47 	char *binding;
    48 } flib_binding;
    48 } flib_binding;
    49 
    49 
    50 typedef struct {
    50 typedef struct {
    51 	char *name;
    51 	char *name;
    52 	char *hat;			//! e.g. hair_yellow; References a .png file in Data/Graphics/Hats
    52 	char *hat;			//!< e.g. hair_yellow; References a .png file in Data/Graphics/Hats
    53 
    53 
    54 	//! Statistics. They are irrelevant for the engine or server,
    54 	//! Statistics. They are irrelevant for the engine or server,
    55 	//! but provided for ini reading/writing by the frontend.
    55 	//! but provided for ini reading/writing by the frontend.
    56 	int rounds;
    56 	int rounds;
    57 	int kills;
    57 	int kills;
    58 	int deaths;
    58 	int deaths;
    59 	int suicides;
    59 	int suicides;
    60 
    60 
    61 	int difficulty;		//! 0 = human, 1 = most difficult bot ... 5 = least difficult bot (somewhat counterintuitive)
    61 	int difficulty;		//!< 0 = human, 1 = most difficult bot ... 5 = least difficult bot (somewhat counterintuitive)
    62 
    62 
    63 	//! Transient setting used in game setup
    63 	//! Transient setting used in game setup
    64 	int initialHealth;
    64 	int initialHealth;
    65 	flib_weaponset *weaponset;
    65 	flib_weaponset *weaponset;
    66 } flib_hog;
    66 } flib_hog;
    67 
    67 
    68 typedef struct {
    68 typedef struct {
    69 	flib_hog hogs[HEDGEHOGS_PER_TEAM];
    69 	flib_hog hogs[HEDGEHOGS_PER_TEAM];
    70 	char *name;
    70 	char *name;
    71 	char *grave;		//! e.g. "Bone"; References a .png file in Data/Graphics/Graves
    71 	char *grave;		//!< e.g. "Bone"; References a .png file in Data/Graphics/Graves
    72 	char *fort;			//! e.g. "Castle"; References a series of files in Data/Forts
    72 	char *fort;			//!< e.g. "Castle"; References a series of files in Data/Forts
    73 	char *voicepack;	//! e.g. "Classic"; References a directory in Data/Sounds/voices
    73 	char *voicepack;	//!< e.g. "Classic"; References a directory in Data/Sounds/voices
    74 	char *flag;			//! e.g. "hedgewars"; References a .png file in Data/Graphics/Flags
    74 	char *flag;			//!< e.g. "hedgewars"; References a .png file in Data/Graphics/Flags
    75 
    75 
    76 	flib_binding *bindings;
    76 	flib_binding *bindings;
    77 	int bindingCount;
    77 	int bindingCount;
    78 
    78 
    79 	//! Statistics. They are irrelevant for the engine or server,
    79 	//! Statistics. They are irrelevant for the engine or server,
    81 	int rounds;
    81 	int rounds;
    82 	int wins;
    82 	int wins;
    83 	int campaignProgress;
    83 	int campaignProgress;
    84 
    84 
    85 	//! Transient settings used in game setup
    85 	//! Transient settings used in game setup
    86 	int colorIndex;		//! Index into a color table
    86 	int colorIndex;		//!< Index into a color table
    87 	int hogsInGame;		//! The number of hogs that will actually play
    87 	int hogsInGame;		//!< The number of hogs that will actually play
    88 	bool remoteDriven;	//! true for non-local teams in a network game
    88 	bool remoteDriven;	//!< true for non-local teams in a network game
    89 	char *ownerName;	//! Username of the owner of a team in a network game
    89 	char *ownerName;	//!< Username of the owner of a team in a network game
    90 } flib_team;
    90 } flib_team;
    91 
    91 
    92 /**
    92 /**
    93  * Free all memory associated with the team
    93  * Free all memory associated with the team
    94  */
    94  */