123456789101112131415161718192021222324252627 |
- #include <menu.h>
- #include "main.h"
- #include "Curses.h"
- #ifndef _MENU_HEADER_
- #define _MENU_HEADER_
- typedef struct { char* name; char* description; } menu_entry;
- static menu_entry MenuEntries[] = {
- { "New", "Start a new game." },
- { "Load", "Load a saved game." },
- { "Quit", "Exit the game." },
- };
- #define NCHOICES ARRAY_SIZE(MenuEntries)
- typedef ITEM* item;
- typedef item* items;
- typedef struct Menu {
- window win;
- items choices;
- MENU* framework;
- } Menu;
- typedef struct Menu* menu;
- menu CreateMenu();
- void PurgeMenu( menu m );
- void LaunchMenu();
- #endif
|