projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added using global levelset identifier and level number for network games
[rocksndiamonds.git]
/
src
/
libgame
/
system.h
diff --git
a/src/libgame/system.h
b/src/libgame/system.h
index ab8f43b0a85172467403a575bedb67b599c4938d..29a98017dd832c63435c16297498f3018ecd5868 100644
(file)
--- a/
src/libgame/system.h
+++ b/
src/libgame/system.h
@@
-330,6
+330,10
@@
#define STYLE_INNER_CORNERS (1 << 1)
#define STYLE_REVERSE (1 << 2)
#define STYLE_INNER_CORNERS (1 << 1)
#define STYLE_REVERSE (1 << 2)
+/* values for special event handling style (used for global animation) */
+#define STYLE_PASSTHROUGH (1 << 3)
+#define STYLE_MULTIPLE_ACTIONS (1 << 4)
+
#define STYLE_DEFAULT STYLE_NONE
/* values for special global animation events */
#define STYLE_DEFAULT STYLE_NONE
/* values for special global animation events */
@@
-563,6
+567,7
@@
#define DOCS_DIRECTORY "docs"
#define CACHE_DIRECTORY "cache"
#define CONF_DIRECTORY "conf"
#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"
#define GFX_CLASSIC_SUBDIR "gfx_classic"
#define SND_CLASSIC_SUBDIR "snd_classic"
@@
-861,6
+866,17
@@
struct ProgramInfo
boolean headless;
};
boolean headless;
};
+struct NetworkInfo
+{
+ boolean enabled;
+ boolean connected;
+ boolean serveronly;
+
+ char *server_host;
+ int server_port;
+
+};
+
struct OptionInfo
{
char *server_host;
struct OptionInfo
{
char *server_host;
@@
-1242,6
+1258,8
@@
struct SetupInfo
boolean handicap;
boolean skip_levels;
boolean increment_levels;
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;
boolean time_limit;
boolean fullscreen;
int window_scaling_percent;
@@
-1268,6
+1286,9
@@
struct SetupInfo
int volume_loops;
int volume_music;
int volume_loops;
int volume_music;
+ boolean network_mode;
+ int network_player_nr;
+
struct SetupAutoSetupInfo auto_setup;
struct SetupEditorInfo editor;
struct SetupEditorCascadeInfo editor_cascade;
struct SetupAutoSetupInfo auto_setup;
struct SetupEditorInfo editor;
struct SetupEditorCascadeInfo editor_cascade;
@@
-1519,6
+1540,7
@@
struct TextPosInfo
int x, y;
int xoffset; /* special case for tape date and time */
int xoffset2; /* special case for tape date */
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 width, height;
int align, valign;
int size; /* also used for suffix ".digits" */
@@
-1531,6
+1553,10
@@
struct TextPosInfo
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 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
};
struct MouseActionInfo
@@
-1540,6
+1566,14
@@
struct MouseActionInfo
int button_hint;
};
int button_hint;
};
+struct LevelSetInfo
+{
+ int music[MAX_LEVELS];
+
+ char *identifier;
+ int level_nr;
+};
+
struct LevelStats
{
int played;
struct LevelStats
{
int played;
@@
-1552,6
+1586,7
@@
struct LevelStats
/* ========================================================================= */
extern struct ProgramInfo program;
/* ========================================================================= */
extern struct ProgramInfo program;
+extern struct NetworkInfo network;
extern struct OptionInfo options;
extern struct VideoSystemInfo video;
extern struct AudioSystemInfo audio;
extern struct OptionInfo options;
extern struct VideoSystemInfo video;
extern struct AudioSystemInfo audio;
@@
-1568,6
+1603,7
@@
extern LevelDirTree *leveldir_first;
extern LevelDirTree *leveldir_current;
extern int level_nr;
extern LevelDirTree *leveldir_current;
extern int level_nr;
+extern struct LevelSetInfo levelset;
extern struct LevelStats level_stats[];
extern DrawWindow *window;
extern struct LevelStats level_stats[];
extern DrawWindow *window;
@@
-1590,6
+1626,7
@@
extern int FrameCounter;
void InitProgramInfo(char *, char *, char *, char *, char *, char *, char *,
char *, int);
void InitProgramInfo(char *, char *, char *, char *, char *, char *, char *,
char *, int);
+void InitNetworkInfo(boolean, boolean, boolean, char *, int);
void InitScoresInfo();
void SetWindowTitle();
void InitScoresInfo();
void SetWindowTitle();