| 1 |
// |
| 2 |
// Copyright(C) 2022 by Ryan Krafnick |
| 3 |
// |
| 4 |
// This program is free software; you can redistribute it and/or |
| 5 |
// modify it under the terms of the GNU General Public License |
| 6 |
// as published by the Free Software Foundation; either version 2 |
| 7 |
// of the License, or (at your option) any later version. |
| 8 |
// |
| 9 |
// This program is distributed in the hope that it will be useful, |
| 10 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
// GNU General Public License for more details. |
| 13 |
// |
| 14 |
// DESCRIPTION: |
| 15 |
// DSDA MapInfo |
| 16 |
// |
| 17 |
|
| 18 |
#ifndef __DSDA_MAPINFO__ |
| 19 |
#define __DSDA_MAPINFO__ |
| 20 |
|
| 21 |
#include "p_mobj.h" |
| 22 |
|
| 23 |
#include "dsda/utility.h" |
| 24 |
|
| 25 |
#define WI_SHOW_NEXT_LOC 0x01 |
| 26 |
#define WI_SHOW_NEXT_DONE 0x02 |
| 27 |
#define WI_SHOW_NEXT_EPISODAL 0x04 |
| 28 |
|
| 29 |
#define DC_VICTORY 0x01 |
| 30 |
|
| 31 |
#define WD_VICTORY 0x01 |
| 32 |
#define WD_START_FINALE 0x02 |
| 33 |
|
| 34 |
#define MI_INTERMISSION 0x00000001ul |
| 35 |
#define MI_ALLOW_MONSTER_TELEFRAGS 0x00000002ul |
| 36 |
#define MI_ACTIVATE_OWN_DEATH_SPECIALS 0x00000004ul |
| 37 |
#define MI_LAX_MONSTER_ACTIVATION 0x00000008ul |
| 38 |
#define MI_MISSILES_ACTIVATE_IMPACT_LINES 0x00000010ul |
| 39 |
#define MI_FILTER_STARTS 0x00000020ul |
| 40 |
#define MI_ALLOW_RESPAWN 0x00000040ul |
| 41 |
#define MI_ALLOW_JUMP 0x00000080ul |
| 42 |
#define MI_ALLOW_FREE_LOOK 0x00000100ul |
| 43 |
#define MI_CHECK_SWITCH_RANGE 0x00000200ul |
| 44 |
#define MI_RESET_HEALTH 0x00000400ul |
| 45 |
#define MI_RESET_INVENTORY 0x00000800ul |
| 46 |
#define MI_USE_PLAYER_START_Z 0x00001000ul |
| 47 |
#define MI_VERTICAL_EXPLOSION_THRUST 0x00002000ul |
| 48 |
#define MI_EXPLODE_IN_3D 0x00004000ul |
| 49 |
#define MI_SHOW_AUTHOR 0x00008000ul |
| 50 |
#define MI_PASSOVER 0x00010000ul |
| 51 |
#define MI_EVEN_LIGHTING 0x00020000ul |
| 52 |
#define MI_SMOOTH_LIGHTING 0x00040000ul |
| 53 |
|
| 54 |
typedef uint32_t map_info_flags_t; |
| 55 |
|
| 56 |
typedef struct { |
| 57 |
fixed_t gravity; |
| 58 |
fixed_t air_control; |
| 59 |
fixed_t air_friction; |
| 60 |
int default_colormap; |
| 61 |
map_info_flags_t flags; |
| 62 |
} map_info_t; |
| 63 |
|
| 64 |
extern map_info_t map_info; |
| 65 |
|
| 66 |
void dsda_FirstMap(int* episode, int* map); |
| 67 |
void dsda_NewGameMap(int* episode, int* map); |
| 68 |
void dsda_ResolveWarp(int* args, int arg_count, int* episode, int* map); |
| 69 |
int dsda_NameToMap(const char* name, int* episode, int* map); |
| 70 |
void dsda_NextMap(int* episode, int* map); |
| 71 |
void dsda_PrevMap(int* episode, int* map); |
| 72 |
void dsda_ShowNextLocBehaviour(int* behaviour); |
| 73 |
int dsda_SkipDrawShowNextLoc(void); |
| 74 |
void dsda_UpdateGameMap(int episode, int map); |
| 75 |
void dsda_ResetLeaveData(void); |
| 76 |
void dsda_UpdateLeaveData(int map, int position, int flags, angle_t angle); |
| 77 |
dboolean dsda_FinaleShortcut(void); |
| 78 |
void dsda_UpdateLastMapInfo(void); |
| 79 |
void dsda_UpdateNextMapInfo(void); |
| 80 |
int dsda_ResolveCLEV(int* episode, int* map); |
| 81 |
int dsda_ResolveINIT(void); |
| 82 |
int dsda_MusicIndexToLumpNum(int music_index); |
| 83 |
void dsda_MapMusic(int* music_index, int* music_lump, int episode, int map); |
| 84 |
void dsda_IntermissionMusic(int* music_index, int* music_lump); |
| 85 |
void dsda_InterMusic(int* music_index, int* music_lump); |
| 86 |
void dsda_StartFinale(void); |
| 87 |
int dsda_FTicker(void); |
| 88 |
int dsda_FDrawer(void); |
| 89 |
int dsda_BossAction(mobj_t* mo); |
| 90 |
const char* dsda_MapLumpName(int episode, int map); |
| 91 |
const char* dsda_MapAuthor(void); |
| 92 |
void dsda_HUTitle(dsda_string_t* str); |
| 93 |
int dsda_SkyTexture(void); |
| 94 |
void dsda_PrepareInitNew(void); |
| 95 |
void dsda_PrepareIntermission(int* behaviour); |
| 96 |
void dsda_PrepareFinale(int* behaviour); |
| 97 |
void dsda_LoadMapInfo(void); |
| 98 |
const char* dsda_ExitPic(void); |
| 99 |
const char* dsda_EnterPic(void); |
| 100 |
const char* dsda_BorderTexture(void); |
| 101 |
void dsda_PrepareEntering(void); |
| 102 |
void dsda_PrepareFinished(void); |
| 103 |
int dsda_MapLightning(void); |
| 104 |
void dsda_ApplyFadeTable(void); |
| 105 |
int dsda_MapCluster(int map); |
| 106 |
short dsda_Sky1Texture(void); |
| 107 |
short dsda_Sky2Texture(void); |
| 108 |
void dsda_InitSky(void); |
| 109 |
|
| 110 |
#endif |