made the join game screen to get ready for attaching to host and also made a protocol doc
This commit is contained in:
@@ -3,17 +3,31 @@
|
||||
#define __host_h__
|
||||
|
||||
#define NO_OBJECT 0
|
||||
//host view
|
||||
#define SET_NAME_BUTTON 1
|
||||
#define START_GAME_BUTTON 2
|
||||
//join view
|
||||
#define JOIN_GAME_BUTTON 1
|
||||
#define PLAYER_NAME_BOX 2
|
||||
#define LOBBY_NAME_BOX 3
|
||||
#define PLAYER_NAME_SEL 0
|
||||
#define LOBBY_NAME_SEL 1
|
||||
|
||||
//host
|
||||
void render_host_game();
|
||||
void init_host();
|
||||
extern int over_object;
|
||||
extern int lobby_has_name;
|
||||
|
||||
|
||||
char *get_this_name(int i);
|
||||
|
||||
//join
|
||||
|
||||
|
||||
char *join_get_name_ptr();
|
||||
void render_join_game();
|
||||
void init_join();
|
||||
int join_over_object();
|
||||
void join_set_selected(int);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user