1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
|
//******************************************************************************
// copyright (c) 1991-2004 TLK Games all rights reserved
//-----------------------------------------------------------------------------
// file : "escapeMenu.h"
// created : 2004-08-08
// updates : 2004-08-28
// fonction : handle escape menu
//-----------------------------------------------------------------------------
// This program is free software; you can redistribute it and/or modify it under
// the terms of the GNU General Public License as published by the Free Software
// Foundation; either version 2 of the License, or (at your option) any later
// version.
//
// This program is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
// details.
//
// You should have received a copy of the GNU General Public License along with
// this program; if not, write to the Free Software Foundation, Inc., 59 Temple
// Place - Suite 330, Boston, MA 02111-1307, USA.
//******************************************************************************
#ifndef __ESCAPEMENU__
#define __ESCAPEMENU__
//...............................................................................
class escapeMenu;
//...............................................................................
#include "../include/mentatCode.h"
#include "../include/print_text.h"
#include "../include/BOB_killer.h"
//...............................................................................
class escapeMenu:public virtual print_text, public virtual BOB_killer
{
private:
static const Sint32 YCOORDNULL = -10240;
private:
GIF_bitMap* graphTexte;
Sint32 nb_columns;
Sint32 nb_ofLines;
Sint32 space2next;
Sint32 yPressLeft;
Sint32 yPressRigh;
Sint32 menu_color;
Sint32 restoreBkg; //1: restore background when leave menu
Sint32 menuNumber;
public:
static const Sint32 WECONTINUE = 1;
static const Sint32 GOGAMEOVER = 2;
static const Sint32 EXITTOMENU = 3;
static const Sint32 WEQUITGAME = 4;
public:
escapeMenu();
~escapeMenu();
Sint32 first_init(GIF_bitMap *image, Sint32 nmenu, Sint32 large,
Sint32 resto = 1, Sint32 palet = 0);
Sint32 execution1();
private:
void displayBOB(char *ptSrc, Sint32 pos_x, Sint32 pos_y, Sint32 NxLine, Sint32 width, Sint32 heigh);
void display640();
void display320();
static const unsigned char escapeMenu::cyclingtab[];
static const char *menu_texts[2];
static const char menu_text1[];
static const char menu_text2[];
};
#endif
|