space-shooter/include/gui.h

28 lines
532 B
C
Raw Normal View History

#ifndef GUI_H
#define GUI_H
#include <ncurses.h>
#include "objects.h"
#include "utils.h"
/* color pair ids for gui.c */
enum {
ENEMY_PAIR = 1,
TITLE_PAIR,
GMOVR_PAIR,
BONUS_PAIR,
WINSC_PAIR
};
/* initialization and screens */
void init_colors(void);
void print_menu(WINDOW* win);
void print_gameover(WINDOW* win);
void print_win_screen(WINDOW* win);
/* status bar (draws into stdscr or another window) */
void print_status_bar(WINDOW* main_win, int y, int x, struct status game_status);
#endif /* GUI_H */