projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added drawing network players (graphics and names) to main menu screen
[rocksndiamonds.git]
/
src
/
libgame
/
system.h
diff --git
a/src/libgame/system.h
b/src/libgame/system.h
index bc294f227bb3b8622d0e5ba68366b966d2104361..839a52586fb5fba4268eb297cf50c99f44841e85 100644
(file)
--- a/
src/libgame/system.h
+++ b/
src/libgame/system.h
@@
-865,6
+865,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;
@@
-1246,6
+1257,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;
@@
-1273,6
+1286,7
@@
struct SetupInfo
int volume_music;
boolean network_mode;
int volume_music;
boolean network_mode;
+ int network_player_nr;
struct SetupAutoSetupInfo auto_setup;
struct SetupEditorInfo editor;
struct SetupAutoSetupInfo auto_setup;
struct SetupEditorInfo editor;
@@
-1537,6
+1551,8
@@
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 */
};
struct MouseActionInfo
};
struct MouseActionInfo
@@
-1558,6
+1574,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;
@@
-1596,6
+1613,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();