#define DOCS_DIRECTORY "docs"
#define CACHE_DIRECTORY "cache"
#define CONF_DIRECTORY "conf"
+#define NETWORK_DIRECTORY "network"
#define GFX_CLASSIC_SUBDIR "gfx_classic"
#define SND_CLASSIC_SUBDIR "snd_classic"
boolean headless;
};
+struct NetworkInfo
+{
+ boolean enabled;
+ boolean connected;
+ boolean serveronly;
+
+ char *server_host;
+ int server_port;
+
+};
+
struct OptionInfo
{
char *server_host;
boolean handicap;
boolean skip_levels;
boolean increment_levels;
+ boolean auto_play_next_level;
+ boolean skip_scores_after_game;
boolean time_limit;
boolean fullscreen;
int window_scaling_percent;
int volume_music;
boolean network_mode;
+ int network_player_nr;
struct SetupAutoSetupInfo auto_setup;
struct SetupEditorInfo editor;
int x, y;
int xoffset; /* special case for tape date and time */
int xoffset2; /* special case for tape date */
+ int yoffset; /* special case for list of preview players */
int width, height;
int align, valign;
int size; /* also used for suffix ".digits" */
int direction; /* needed for panel time/health graphics */
int class; /* needed for panel time/health graphics */
int style; /* needed for panel time/health graphics */
+
+ int tile_size; /* special case for list of network players */
+ int border_size; /* special case for list of preview players */
+ int vertical; /* special case for list of preview players */
};
struct MouseActionInfo
int button_hint;
};
+struct LevelSetInfo
+{
+ int music[MAX_LEVELS];
+
+ char *identifier;
+ int level_nr;
+};
+
struct LevelStats
{
int played;
/* ========================================================================= */
extern struct ProgramInfo program;
+extern struct NetworkInfo network;
extern struct OptionInfo options;
extern struct VideoSystemInfo video;
extern struct AudioSystemInfo audio;
extern LevelDirTree *leveldir_current;
extern int level_nr;
+extern struct LevelSetInfo levelset;
extern struct LevelStats level_stats[];
extern DrawWindow *window;
void InitProgramInfo(char *, char *, char *, char *, char *, char *, char *,
char *, int);
+void InitNetworkInfo(boolean, boolean, boolean, char *, int);
void InitScoresInfo();
void SetWindowTitle();