34 lines
552 B
C
34 lines
552 B
C
//Troy Rosin
|
|
#ifndef __host_h__
|
|
#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
|
|
|