2010-08-02 08:13:51 +00:00
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
/*
|
|
|
|
Copyright (C) 2010 EDuke32 developers and contributors
|
|
|
|
|
|
|
|
This file is part of EDuke32.
|
|
|
|
|
|
|
|
EDuke32 is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License version 2
|
|
|
|
as published by the Free Software Foundation.
|
|
|
|
|
|
|
|
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
|
2014-07-20 08:55:56 +00:00
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2010-08-02 08:13:51 +00:00
|
|
|
*/
|
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
|
2014-11-22 12:32:56 +00:00
|
|
|
#ifndef premap_h_
|
|
|
|
#define premap_h_
|
2010-08-02 08:13:51 +00:00
|
|
|
|
2014-11-26 04:39:23 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2010-08-02 08:13:51 +00:00
|
|
|
extern int32_t g_levelTextTime;
|
|
|
|
extern int32_t voting,vote_map,vote_episode;
|
|
|
|
extern palette_t CrosshairColors;
|
2018-01-29 11:13:16 +00:00
|
|
|
void G_SetupFilenameBasedMusic(char *nameBuf, const char *fileName, int levelNum);
|
2016-08-27 01:40:56 +00:00
|
|
|
int G_EnterLevel(int gameMode);
|
|
|
|
int G_FindLevelByFile(const char *fileName);
|
2010-08-02 08:13:51 +00:00
|
|
|
void G_CacheMapData(void);
|
2016-08-27 01:40:56 +00:00
|
|
|
void G_FreeMapState(int levelNum);
|
|
|
|
void G_NewGame(int volumeNum, int levelNum, int skillNum);
|
2018-11-18 18:07:51 +00:00
|
|
|
void G_ResetTimers(bool saveMoveCnt);
|
2010-08-02 08:13:51 +00:00
|
|
|
void G_SetCrosshairColor(int32_t r,int32_t g,int32_t b);
|
|
|
|
void G_UpdateScreenArea(void);
|
2013-01-17 21:59:11 +00:00
|
|
|
void G_SetViewportShrink(int32_t dir);
|
2016-08-27 01:40:56 +00:00
|
|
|
void P_RandomSpawnPoint(int playerNum);
|
|
|
|
void P_ResetInventory(int playerNum);
|
2018-11-18 18:07:57 +00:00
|
|
|
void P_ResetMultiPlayer(int playerNum);
|
2016-08-27 01:40:56 +00:00
|
|
|
void P_ResetPlayer(int playerNum);
|
|
|
|
void P_ResetWeapons(int playerNum);
|
2011-02-25 21:50:19 +00:00
|
|
|
void G_ClearFIFO(void);
|
2011-07-29 22:07:28 +00:00
|
|
|
void G_ResetInterpolations(void);
|
2018-11-18 18:08:08 +00:00
|
|
|
int fragbarheight(void);
|
2010-08-02 08:13:51 +00:00
|
|
|
|
2014-11-26 04:39:23 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2010-08-12 21:06:51 +00:00
|
|
|
#endif
|