#ifndef _MENU_H_ #define _MENU_H_ #include "game.h" /** * Enumeration of the menu states. */ typedef enum { START_SCREEN, // Start screen, press button b to start. SHIP_SELECT, // Ship Selected Screen. SELECT_SCREEN, // Select ship screen. GAME_START, // Starting Game Screen. GAME_OVER_DRAW, // Draw the game over screen. GAME_OVER, // Game Over Screen. CONTINUE // Continue Screen. } MenuStates; #define TITLE_Y_CENTER 30 // Title Center #define LOGO_Y_CENTER 26 // Logo Center /** * Initializes Menu parameters. */ void initializeMenu(ShipInfoDesc* ship1, ShipInfoDesc* ship2); /** * Process next State for Menu selection. (Call by main loop once a frame, * until this returns true. * @return non-zero when we can enter game mode. */ char nextMenuState(); /** * Displays the Start Screen. */ void displayStartScreen(); /** * Display the Ship Selection Screen. */ void displayShipSelectScreen(); /** * Update the selection bars for the ships. */ void updateSelectScreen(char player); /** * Update the Game Over Selection Choices */ void updateGameOverSelection(char type); /** * Display the Battle Message. */ void displayBattleMessage(); #endif