My Project
Loading...
Searching...
No Matches
mainint.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 MAININT_H
20#define MAININT_H
21
22#include "config.h"
23#include "opentyr.h"
24#include "palette.h"
25#include "player.h"
26#include "sprite.h"
27
28extern bool button[4]; // fire, left fire, right fire, mode swap
29
30extern JE_shortint constantLastX;
31extern JE_word textErase;
32extern JE_word upgradeCost;
33extern JE_word downgradeCost;
34extern JE_boolean performSave;
35extern JE_boolean jumpSection;
36extern JE_boolean useLastBank;
37
38extern bool pause_pressed, ingamemenu_pressed;
39
40/*void JE_textMenuWait(JE_word waittime, JE_boolean dogamma);*/
41
42void JE_drawTextWindow(const char *text);
43void JE_initPlayerData(void);
44void JE_highScoreScreen(void);
45void JE_gammaCorrect_func(JE_byte *col, JE_real r);
46void JE_gammaCorrect(Palette *colorBuffer, JE_byte gamma);
47JE_boolean JE_gammaCheck(void);
48/* void JE_textMenuWait(JE_word *waitTime, JE_boolean doGamma); /!\ In setup.h */
49void JE_nextEpisode(void);
50void JE_helpSystem(JE_byte startTopic);
51void JE_doInGameSetup(void);
52JE_boolean JE_inGameSetup(void);
53void JE_inGameHelp(void);
54void JE_sortHighScores(void);
55void JE_highScoreCheck(void);
56void adjust_difficulty(void);
57
58bool load_next_demo(void);
59bool replay_demo_keys(void);
60
61void JE_SFCodes(JE_byte playerNum_, JE_integer PX_, JE_integer PY_, JE_integer mouseX_, JE_integer mouseY_);
62void JE_sort(void);
63
64long weapon_upgrade_cost(long base_cost, unsigned int power);
65ulong JE_getCost(JE_byte itemType, JE_word itemNum);
66JE_longint JE_getValue(JE_byte itemType, JE_word itemNum);
67ulong JE_totalScore(const Player *);
68
69void JE_drawPortConfigButtons(void);
70void JE_outCharGlow(JE_word x, JE_word y, const char *s);
71
72void JE_playCredits(void);
73void JE_endLevelAni(void);
74void JE_drawCube(SDL_Surface * screen, JE_word x, JE_word y, JE_byte filter, JE_byte brightness);
75void JE_handleChat(void);
76bool str_pop_int(char *str, int *val);
77bool JE_loadScreen(void);
78void JE_operation(JE_byte slot);
79void JE_inGameDisplays(void);
80void JE_mainKeyboardInput(void);
81void JE_pauseGame(void);
82
83void JE_playerMovement(Player *this_player, JE_byte inputDevice, JE_byte playerNum, JE_word shipGr, Sprite2_array *shipGrPtr_, JE_word *mouseX, JE_word *mouseY);
84void JE_mainGamePlayerFunctions(void);
85const char *JE_getName(JE_byte pnum);
86
87void JE_playerCollide(Player *this_player, JE_byte playerNum);
88
89#endif /* MAININT_H */
Definition player.h:61
Definition sprite.h:90