Make sure elements include their headers

This helps catch type mismatches.
This commit is contained in:
Tamás Bálint Misius
2025-02-23 20:58:18 +01:00
parent 53a1f8d8bc
commit 9991dc5524
5 changed files with 4 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
#include "simulation/ElementCommon.h"
#include "Probability.h"
#include "EMP.h"
static int graphics(GRAPHICS_FUNC_ARGS);

View File

@@ -1,4 +1,5 @@
#include "simulation/ElementCommon.h"
#include "ETRD.h"
#include <algorithm>
static void initDeltaPos();

View File

@@ -1,4 +1,5 @@
#include "simulation/ElementCommon.h"
#include "LOLZ.h"
void Element::Element_LOLZ()
{

View File

@@ -1,4 +1,5 @@
#include "simulation/ElementCommon.h"
#include "SOAP.h"
static int update(UPDATE_FUNC_ARGS);
static int graphics(GRAPHICS_FUNC_ARGS);

View File

@@ -9,4 +9,3 @@ void Element_STKM_init_legs(Simulation * sim, playerst *playerp, int i);
void Element_STKM_interact(Simulation *sim, playerst *playerp, int i, int x, int y);
int Element_STKM_run_stickman(playerst *playerp, UPDATE_FUNC_ARGS);
void Element_STKM_set_element(Simulation *sim, playerst *playerp, int element);
void Element_STKM_set_element(Simulation *sim, playerst *playerp, int element);