1 // (_||_/ 2 // ( ) Classe Menu 3 // ( o 0 ) 4 //-OOO�--(_)---�OOO--------------------------------------- 5 // Copyright (C) 2006 By Dominique Roux-Serret 6 // .OOOo oOOO. roux-serret@ifrance.com 7 //-( )------( )--------------------------------------- 8 // ( ( ) / Le 23/03/2006 9 // (_) (_/ 10 11 // This program is free software; you can redistribute it and/or modify 12 // it under the terms of the GNU General Public License as published by 13 // the Free Software Foundation; either version 2 or version 3 of the License. 14 15 // This program is distributed in the hope that it will be useful, 16 // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 // GNU General Public License for more details. 19 20 // You should have received a copy of the GNU General Public License along 21 // with this program; if not, write to the Free Software Foundation, Inc., 22 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 23 24 #ifndef _MENU_DOM_ 25 #define _MENU_DOM_ 26 27 #include "preference.h" 28 29 /*** Fonction d'attente ***/ 30 /**************************/ 31 void Sleeping(void); 32 33 /*** D�finition de la class ***/ 34 /******************************/ 35 class Menu { 36 public: 37 Menu(void); 38 ~Menu(void); 39 40 /*** Fonctions ***/ 41 /*****************/ 42 eMenu SDLMain(void); // Menu principale 43 eMenu SDLMain_Langue(void); // Menu du choix de la langue 44 void InitMain_Options(void); // Pr�pare l'affichage du menu options 45 eMenu SDLMain_Options(void); // Menu du choix des options 46 eMenu SDLMain_Speed(void); // Menu du choix de la difficult� 47 eMenu SDLMain_Niveau(void); // Choisi le niveau 48 #ifndef DCHILDREN 49 eMenu SDLMain_HR(void); // Menu de question sur les doits de l'homme 50 #endif 51 void Affiche_InGame(void); // Affiche le menu InGame 52 eMenu SDLMain_InGame(void); // Menu dans le jeu 53 eMenu SDLMain_Score(bool EditScore=false); // Affiche les scores 54 55 void Affiche_Main(int Centre=400); // Affiche le menu principale 56 void Affiche_Main_Centre(void); // Centre les fl�ches sur le bouton 57 58 /*** Variables ***/ 59 /*****************/ 60 int PyE; // Position du curseur dans le menu 61 int NumEc; // Num�ro de l'ecran en cours d'affichage 62 int Niv; 63 int CentreM; // Variable pour le menu options 64 }; 65 66 #endif 67