| 1 |
// |
| 2 |
// Copyright(C) 2020 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 Tools |
| 16 |
// |
| 17 |
|
| 18 |
#ifndef __DSDA__ |
| 19 |
#define __DSDA__ |
| 20 |
|
| 21 |
#include "doomdef.h" |
| 22 |
#include "p_mobj.h" |
| 23 |
#include "d_player.h" |
| 24 |
#include "r_defs.h" |
| 25 |
|
| 26 |
typedef struct { |
| 27 |
int m, s, t; |
| 28 |
} dsda_level_time_t; |
| 29 |
|
| 30 |
typedef struct { |
| 31 |
int h, m, s; |
| 32 |
} dsda_movie_time_t; |
| 33 |
|
| 34 |
#define LINE_ACTIVATION_INDEX_MAX 8 |
| 35 |
|
| 36 |
// TODO: Probably want a command history object split from display |
| 37 |
void dsda_ResetCommandHistory(void); |
| 38 |
void dsda_InitCommandHistory(void); |
| 39 |
void dsda_AddCommandToCommandDisplay(ticcmd_t* cmd); |
| 40 |
|
| 41 |
// TODO: Might want a split object separate from display |
| 42 |
typedef enum |
| 43 |
{ |
| 44 |
DSDA_SPLIT_BLUE_KEY, |
| 45 |
DSDA_SPLIT_YELLOW_KEY, |
| 46 |
DSDA_SPLIT_RED_KEY, |
| 47 |
DSDA_SPLIT_USE, |
| 48 |
DSDA_SPLIT_SECRET, |
| 49 |
DSDA_SPLIT_CLASS_COUNT |
| 50 |
} dsda_split_class_t; |
| 51 |
|
| 52 |
void dsda_AddSplit(dsda_split_class_t split_class, int lifetime); |
| 53 |
|
| 54 |
void dsda_ReadCommandLine(void); |
| 55 |
int dsda_SessionAttempts(void); |
| 56 |
void dsda_DisplayNotifications(void); |
| 57 |
void dsda_WatchReborn(int playernum); |
| 58 |
void dsda_WatchCard(card_t card); |
| 59 |
void dsda_WatchCrush(mobj_t* thing, int damage); |
| 60 |
void dsda_WatchDamage(mobj_t* target, mobj_t* inflictor, mobj_t* source, int damage); |
| 61 |
void dsda_WatchDeath(mobj_t* thing); |
| 62 |
void dsda_WatchKill(player_t* player, mobj_t* target); |
| 63 |
void dsda_WatchResurrection(mobj_t* target, mobj_t* raiser); |
| 64 |
void dsda_WatchFailedSpawn(mobj_t* spawned); |
| 65 |
void dsda_WatchMorph(mobj_t* morphed); |
| 66 |
void dsda_WatchUnMorph(mobj_t* morphed); |
| 67 |
void dsda_WatchSpawn(mobj_t* spawned); |
| 68 |
void dsda_WatchIconSpawn(mobj_t* spawned); |
| 69 |
void dsda_WatchCommand(void); |
| 70 |
void dsda_WatchLedgeImpact(mobj_t* thing, int target_z); |
| 71 |
void dsda_WatchBeforeLevelSetup(void); |
| 72 |
void dsda_WatchAfterLevelSetup(void); |
| 73 |
void dsda_WatchNewLevel(void); |
| 74 |
void dsda_WatchLevelCompletion(void); |
| 75 |
void dsda_WatchWeaponFire(weapontype_t weapon); |
| 76 |
void dsda_WatchSecret(void); |
| 77 |
void dsda_WatchDeferredInitNew(int skill, int episode, int map); |
| 78 |
void dsda_WatchNewGame(void); |
| 79 |
void dsda_WatchLevelReload(int* reloaded); |
| 80 |
void dsda_WatchLineActivation(line_t* line, mobj_t* mo); |
| 81 |
void dsda_WatchPTickCompleted(void); |
| 82 |
|
| 83 |
dboolean dsda_ILComplete(void); |
| 84 |
dboolean dsda_MovieComplete(void); |
| 85 |
void dsda_DecomposeILTime(dsda_level_time_t* level_time); |
| 86 |
void dsda_DecomposeMovieTime(dsda_movie_time_t* total_time); |
| 87 |
int dsda_MaxKillRequirement(void); |
| 88 |
int* dsda_PlayerActivatedLines(void); |
| 89 |
|
| 90 |
int dsda_TurboScale(void); |
| 91 |
int dsda_StartInBuildMode(void); |
| 92 |
|
| 93 |
dboolean dsda_FrozenMode(void); |
| 94 |
void dsda_ToggleFrozenMode(void); |
| 95 |
|
| 96 |
#endif |