space-shooter/include/gui.h
2025-11-10 13:48:17 +01:00

34 lines
685 B
C

#ifndef GUI_H
#define GUI_H
#include <ncurses.h>
#include <menu.h>
#include <curses.h>
#include <stdlib.h>
#include <string.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
};
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
//extern char* choices[];
/* initialization and screens */
void init_colors(void);
int 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 */