My Project
Loading...
Searching...
No Matches
game_menu.h
1/*
2 * OpenTyrian: A modern cross-platform port of Tyrian
3 * Copyright (C) 2007-2009 The OpenTyrian Development Team
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19#ifndef GAME_MENU_H
20#define GAME_MENU_H
21
22#include "helptext.h"
23#include "opentyr.h"
24
25typedef JE_byte JE_MenuChoiceType[MENU_MAX];
26
27JE_longint JE_cashLeft(void);
28void JE_itemScreen(void);
29
30void load_cubes(void);
31bool load_cube(int cube_slot, int cube_index);
32
33void JE_drawItem(JE_byte itemType, JE_word itemNum, JE_word x, JE_word y);
34void JE_drawMenuHeader(void);
35void JE_drawMenuChoices(void);
36void JE_updateNavScreen(void);
37void JE_drawNavLines(JE_boolean dark);
38void JE_drawLines(SDL_Surface *surface, JE_boolean dark);
39void JE_drawDots(void);
40void JE_drawPlanet(JE_byte planetNum);
41void draw_ship_illustration(void);
42void JE_scaleBitmap(SDL_Surface *dst, const SDL_Surface *src, int x1, int y1, int x2, int y2);
43void JE_initWeaponView(void);
44void JE_computeDots(void);
45JE_integer JE_partWay(JE_integer start, JE_integer finish, JE_byte dots, JE_byte dist);
46void JE_doShipSpecs(void);
47void JE_drawMainMenuHelpText(void);
48JE_boolean JE_saveRequest(JE_byte slot, const char *savename);
49JE_boolean JE_quitRequest(void);
50void JE_genItemMenu(JE_byte itemnum);
51void JE_scaleInPicture(SDL_Surface *dst, const SDL_Surface *src);
52void JE_drawScore(void);
53void JE_menuFunction(JE_byte select);
54void JE_drawShipSpecs(SDL_Surface *, SDL_Surface *);
55void JE_weaponSimUpdate(void);
56void JE_weaponViewFrame(void);
57
58#endif // GAME_MENU_H