2011-12-26 22:36:52 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
|
|
|
*
|
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
|
|
|
*
|
|
|
|
* 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This code is based on original Mortville Manor DOS source code
|
|
|
|
* Copyright (c) 1988-1989 Lankhor
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MORTEVIELLE_MENU_H
|
|
|
|
#define MORTEVIELLE_MENU_H
|
|
|
|
|
2011-12-26 23:15:50 +00:00
|
|
|
#include "common/str.h"
|
|
|
|
|
2011-12-26 22:36:52 +00:00
|
|
|
namespace Mortevielle {
|
|
|
|
|
2012-02-12 13:02:03 +00:00
|
|
|
class Menu {
|
|
|
|
private:
|
|
|
|
void util(int x, int y);
|
|
|
|
void invers(int ix);
|
|
|
|
void menuDown(int ii);
|
2012-02-12 22:07:48 +00:00
|
|
|
public:
|
|
|
|
bool _menuActive;
|
|
|
|
Common::String _inv[9];
|
|
|
|
Common::String _dep[8];
|
|
|
|
Common::String _act[22];
|
|
|
|
Common::String _self[7];
|
|
|
|
Common::String _dis[9];
|
|
|
|
int _disc[9];
|
|
|
|
int _invt[9];
|
|
|
|
int _depl[8];
|
2012-02-12 13:02:03 +00:00
|
|
|
public:
|
|
|
|
void menut(int no, Common::String nom);
|
|
|
|
void disableMenuItem(int no);
|
|
|
|
void enableMenuItem(int no);
|
|
|
|
void menu_aff();
|
|
|
|
void drawMenu();
|
|
|
|
void menuUp(int xx);
|
|
|
|
void eraseMenu();
|
|
|
|
void mdn();
|
2012-02-12 22:07:48 +00:00
|
|
|
void initMenu();
|
|
|
|
};
|
|
|
|
|
|
|
|
enum {
|
2012-02-25 20:13:24 +00:00
|
|
|
MENU_INVENTORY = 1, MENU_MOVE = 2, MENU_ACTION = 3, MENU_SUB_ACTION = 4,
|
|
|
|
MENU_DISCUSS = 5, MENU_FILE = 6, MENU_SAVE = 7, MENU_LOAD = 8
|
2012-02-12 13:02:03 +00:00
|
|
|
};
|
2011-12-26 22:36:52 +00:00
|
|
|
|
|
|
|
} // End of namespace Mortevielle
|
|
|
|
#endif
|