5 struct screen *init_menu_screen(void);
6 struct screen *init_game_screen(void);
11 static struct screen *scrlist[MAX_SCR];
14 int init_screens(void)
16 if(!(scrlist[num_scr++] = init_menu_screen())) {
19 if(!(scrlist[num_scr++] = init_game_screen())) {
25 int change_screen(struct screen *scr)
31 if(scr->start && scr->start() == -1) {
34 if(curscr && curscr->stop) {
43 struct screen *find_screen(const char *name)
46 for(i=0; i<num_scr; i++) {
47 if(strcmp(scrlist[i]->name, name) == 0) {