5 struct screen *init_logo_screen(void);
6 struct screen *init_menu_screen(void);
7 struct screen *init_game_screen(void);
12 static struct screen *scrlist[MAX_SCR];
15 int init_screens(void)
17 if(!(scrlist[num_scr++] = init_logo_screen())) {
20 if(!(scrlist[num_scr++] = init_menu_screen())) {
23 if(!(scrlist[num_scr++] = init_game_screen())) {
29 int change_screen(struct screen *scr)
35 if(curscr && curscr->stop) {
38 if(scr->start && scr->start() == -1) {
47 struct screen *find_screen(const char *name)
50 for(i=0; i<num_scr; i++) {
51 if(strcmp(scrlist[i]->name, name) == 0) {