2020-12-16 05:01:39 +01:00
|
|
|
#ifndef BYGFOOT_STRUCT_H
|
|
|
|
#define BYGFOOT_STRUCT_H
|
|
|
|
|
2020-12-24 02:36:49 +01:00
|
|
|
#include <glib.h>
|
|
|
|
|
2020-12-28 06:09:02 +01:00
|
|
|
enum BygfootFrontend {
|
2020-12-24 02:36:49 +01:00
|
|
|
BYGFOOT_FRONTEND_GTK2,
|
|
|
|
BYGFOOT_FRONTEND_CONSOLE,
|
2020-12-28 06:09:02 +01:00
|
|
|
};
|
|
|
|
|
2020-12-16 05:01:39 +01:00
|
|
|
/** This struct holds all of the global state for a bygfoot game. The goal
|
|
|
|
* is for ths struct to eventually replace all the global variables.
|
|
|
|
*/
|
|
|
|
typedef struct
|
|
|
|
{
|
2020-12-28 06:09:02 +01:00
|
|
|
/** Which kind of frontend is being use. See #enum BygfootFrontend. */
|
|
|
|
enum BygfootFrontend frontend;
|
|
|
|
|
|
|
|
/** @name Frontend functions */
|
|
|
|
/* @{ */
|
|
|
|
void (*show_progress)(gfloat, const gchar *, gint);
|
|
|
|
gdouble (*get_progress_bar_fraction)(void);
|
|
|
|
/* @} */
|
2020-12-16 05:01:39 +01:00
|
|
|
} Bygfoot;
|
|
|
|
|
2020-12-24 02:36:49 +01:00
|
|
|
|
2020-12-16 05:01:39 +01:00
|
|
|
#endif
|