rearrange #includes

This commit is contained in:
rr- 2021-03-14 13:50:30 +01:00
parent 552ab2da3e
commit 2c6fd3fa75
201 changed files with 443 additions and 121 deletions

View file

@ -1,8 +1,13 @@
#include "3dsystem/3d_gen.h"
#include "3dsystem/phd_math.h"
#include "specific/output.h"
#include "game/const.h"
#include "game/vars.h"
#include "config.h"
#include "util.h"
#include <math.h>
#define TRIGMULT2(A, B) (((A) * (B)) >> W2V_SHIFT)

View file

@ -1,5 +1,7 @@
#include "3dsystem/phd_math.h"
#include "game/const.h"
#include "util.h"
static int16_t SinTable[0x402] = {

View file

@ -1,8 +1,11 @@
#include "config.h"
#include "game/const.h"
#include "json_utils.h"
#include "util.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define Q(x) #x

View file

@ -1,5 +1,6 @@
#include "3dsystem/phd_math.h"
#include "game/ai/abortion.h"
#include "3dsystem/phd_math.h"
#include "game/box.h"
#include "game/collide.h"
#include "game/control.h"

View file

@ -2,6 +2,7 @@
#define T1M_GAME_AI_ABORTION_H
#include "game/types.h"
#include <stdint.h>
#define ABORTION_DIE_ANIM 13

View file

@ -1,5 +1,6 @@
#include "game/ai/alligator.h"
#include "game/ai/crocodile.h"
#include "game/ai/alligator.h"
#include "game/box.h"
#include "game/collide.h"
#include "game/control.h"

View file

@ -2,6 +2,7 @@
#define T1M_GAME_AI_ALLIGATOR_H
#include "game/types.h"
#include <stdint.h>
#define ALLIGATOR_BITE_DAMAGE 100

View file

@ -1,4 +1,5 @@
#include "game/ai/ape.h"
#include "game/box.h"
#include "game/collide.h"
#include "game/effects/blood.h"

View file

@ -2,6 +2,7 @@
#define T1M_GAME_AI_APE_H
#include "game/types.h"
#include <stdint.h>
#define APE_ATTACK_DAMAGE 200

View file

@ -1,4 +1,5 @@
#include "game/ai/baldy.h"
#include "game/box.h"
#include "game/collide.h"
#include "game/items.h"

View file

@ -2,6 +2,7 @@
#define T1M_GAME_AI_BALDY_H
#include "game/types.h"
#include <stdint.h>
#define BALDY_SHOT_DAMAGE 150

View file

@ -1,4 +1,5 @@
#include "game/ai/bat.h"
#include "game/box.h"
#include "game/collide.h"
#include "game/effects/blood.h"

View file

@ -2,6 +2,7 @@
#define T1M_GAME_AI_BAT_H
#include "game/types.h"
#include <stdint.h>
#define BAT_ATTACK_DAMAGE 2

View file

@ -1,4 +1,5 @@
#include "game/ai/bear.h"
#include "game/box.h"
#include "game/collide.h"
#include "game/effects/blood.h"

View file

@ -2,6 +2,7 @@
#define T1M_GAME_AI_BEAR_H
#include "game/types.h"
#include <stdint.h>
#define BEAR_CHARGE_DAMAGE 3

View file

@ -1,4 +1,5 @@
#include "game/ai/centaur.h"
#include "game/box.h"
#include "game/collide.h"
#include "game/effects/blood.h"

View file

@ -2,6 +2,7 @@
#define T1M_GAME_AI_CENTAUR_H
#include "game/types.h"
#include <stdint.h>
#define CENTAUR_PART_DAMAGE 100

View file

@ -1,4 +1,5 @@
#include "game/ai/cowboy.h"
#include "game/box.h"
#include "game/collide.h"
#include "game/items.h"

View file

@ -2,6 +2,7 @@
#define T1M_GAME_AI_COWBOY_H
#include "game/types.h"
#include <stdint.h>
#define COWBOY_SHOT_DAMAGE 70

View file

@ -1,4 +1,5 @@
#include "game/ai/crocodile.h"
#include "game/box.h"
#include "game/collide.h"
#include "game/control.h"

View file

@ -2,6 +2,7 @@
#define T1M_GAME_AI_CROCODILE_H
#include "game/types.h"
#include <stdint.h>
#define CROCODILE_BITE_DAMAGE 100

View file

@ -1,4 +1,5 @@
#include "game/ai/dino.h"
#include "game/box.h"
#include "game/collide.h"
#include "game/draw.h"

View file

@ -2,6 +2,7 @@
#define T1M_GAME_AI_DINO_H
#include "game/types.h"
#include <stdint.h>
#define DINO_ATTACK_RANGE SQUARE(WALL_L * 4) // = 16777216

View file

@ -1,4 +1,5 @@
#include "game/ai/evil_lara.h"
#include "game/collide.h"
#include "game/control.h"
#include "game/draw.h"

View file

@ -2,6 +2,7 @@
#define T1M_GAME_AI_EVIL_LARA_H
#include "game/types.h"
#include <stdint.h>
void SetupEvilLara(OBJECT_INFO *obj);

View file

@ -1,4 +1,5 @@
#include "game/ai/larson.h"
#include "game/box.h"
#include "game/collide.h"
#include "game/game.h"

View file

@ -2,6 +2,7 @@
#define T1M_GAME_AI_LARSON_H
#include "game/types.h"
#include <stdint.h>
#define LARSON_POSE_CHANCE 0x60 // = 96

View file

@ -1,10 +1,11 @@
#include "game/ai/lion.h"
#include "game/box.h"
#include "game/collide.h"
#include "game/effects/blood.h"
#include "game/game.h"
#include "game/lot.h"
#include "game/vars.h"
#include "game/ai/lion.h"
BITE_INFO LionBite = { -2, -10, 132, 21 };

View file

@ -2,6 +2,7 @@
#define T1M_GAME_AI_LION_H
#include "game/types.h"
#include <stdint.h>
#define LION_BITE_DAMAGE 250

View file

@ -1,5 +1,6 @@
#include "3dsystem/phd_math.h"
#include "game/ai/mummy.h"
#include "3dsystem/phd_math.h"
#include "game/box.h"
#include "game/collide.h"
#include "game/control.h"

View file

@ -2,6 +2,7 @@
#define T1M_GAME_AI_MUMMY_H
#include "game/types.h"
#include <stdint.h>
#define MUMMY_HITPOINTS 18

View file

@ -1,4 +1,5 @@
#include "game/ai/mutant.h"
#include "game/box.h"
#include "game/collide.h"
#include "game/effects/blood.h"

View file

@ -1,9 +1,10 @@
#ifndef T1M_GAME_AI_MUTANT_H
#define T1M_GAME_AI_MUTANT_H
#include <stdint.h>
#include "game/types.h"
#include <stdint.h>
#define FLYER_CHARGE_DAMAGE 100
#define FLYER_LUNGE_DAMAGE 150
#define FLYER_PUNCH_DAMAGE 200

View file

@ -1,5 +1,6 @@
#include "3dsystem/phd_math.h"
#include "game/ai/natla.h"
#include "3dsystem/phd_math.h"
#include "game/box.h"
#include "game/collide.h"
#include "game/control.h"

View file

@ -2,6 +2,7 @@
#define T1M_GAME_AI_NATLA_H
#include "game/types.h"
#include <stdint.h>
#define NATLA_SHOT_DAMAGE 100

View file

@ -1,4 +1,5 @@
#include "game/ai/pierre.h"
#include "game/box.h"
#include "game/collide.h"
#include "game/control.h"

View file

@ -2,6 +2,7 @@
#define T1M_GAME_AI_PIERRE_H
#include "game/types.h"
#include <stdint.h>
#define PIERRE_POSE_CHANCE 0x60 // = 96

View file

@ -1,4 +1,5 @@
#include "game/ai/pod.h"
#include "game/collide.h"
#include "game/control.h"
#include "game/effects/body_part.h"

View file

@ -2,6 +2,7 @@
#define T1M_GAME_AI_POD_H
#include "game/types.h"
#include <stdint.h>
#define POD_EXPLODE_DIST (WALL_L * 4) // = 4096

View file

@ -1,4 +1,5 @@
#include "game/ai/raptor.h"
#include "game/box.h"
#include "game/collide.h"
#include "game/effects/blood.h"

View file

@ -2,6 +2,7 @@
#define T1M_GAME_AI_RAPTOR_H
#include "game/types.h"
#include <stdint.h>
#define RAPTOR_ATTACK_RANGE SQUARE(WALL_L * 3 / 2) // = 2359296

View file

@ -1,4 +1,5 @@
#include "game/ai/rat.h"
#include "game/box.h"
#include "game/collide.h"
#include "game/control.h"

View file

@ -2,6 +2,7 @@
#define T1M_GAME_AI_RAT_H
#include "game/types.h"
#include <stdint.h>
#define RAT_BITE_DAMAGE 20

View file

@ -1,4 +1,5 @@
#include "game/ai/skate_kid.h"
#include "game/box.h"
#include "game/collide.h"
#include "game/draw.h"

View file

@ -2,6 +2,7 @@
#define T1M_GAME_AI_SKATE_KID_H
#include "game/types.h"
#include <stdint.h>
#define SKATE_KID_STOP_SHOT_DAMAGE 50

View file

@ -1,4 +1,5 @@
#include "game/ai/statue.h"
#include "game/collide.h"
#include "game/effects/body_part.h"
#include "game/items.h"

View file

@ -2,6 +2,7 @@
#define T1M_GAME_AI_STATUE_H
#include "game/types.h"
#include <stdint.h>
#define STATUE_EXPLODE_DIST (WALL_L * 7 / 2) // = 3584

View file

@ -1,8 +1,9 @@
#include "game/ai/vole.h"
#include "game/ai/rat.h"
#include "game/box.h"
#include "game/control.h"
#include "game/collide.h"
#include "game/control.h"
#include "game/effects/blood.h"
#include "game/lot.h"
#include "game/vars.h"

View file

@ -2,6 +2,7 @@
#define T1M_GAME_AI_VOLE_H
#include "game/types.h"
#include <stdint.h>
#define VOLE_DIE_ANIM 2

View file

@ -1,10 +1,11 @@
#include "game/ai/wolf.h"
#include "game/box.h"
#include "game/collide.h"
#include "game/effects/blood.h"
#include "game/game.h"
#include "game/lot.h"
#include "game/vars.h"
#include "game/ai/wolf.h"
BITE_INFO WolfJawBite = { 0, -14, 174, 6 };

View file

@ -2,6 +2,7 @@
#define T1M_GAME_AI_WOLF_H
#include "game/types.h"
#include <stdint.h>
#define WOLF_SLEEP_FRAME 96

View file

@ -1,6 +1,8 @@
#include "3dsystem/phd_math.h"
#include "game/box.h"
#include "3dsystem/phd_math.h"
#include "game/control.h"
#include "game/const.h"
#include "game/draw.h"
#include "game/game.h"
#include "game/items.h"
@ -9,6 +11,8 @@
#include "game/vars.h"
#include "util.h"
#include <stddef.h>
void InitialiseCreature(int16_t item_num)
{
ITEM_INFO *item = &Items[item_num];

View file

@ -2,6 +2,7 @@
#define T1M_GAME_BOX_H
#include "game/types.h"
#include <stdint.h>
void InitialiseCreature(int16_t item_num);

View file

@ -1,6 +1,7 @@
#include "game/camera.h"
#include "3dsystem/3d_gen.h"
#include "3dsystem/phd_math.h"
#include "game/camera.h"
#include "game/cinema.h"
#include "game/const.h"
#include "game/control.h"
@ -8,9 +9,11 @@
#include "game/game.h"
#include "game/sound.h"
#include "game/vars.h"
#include "specific/sndpc.h"
#include "util.h"
#include <stddef.h>
void InitialiseCamera()
{
Camera.shift = LaraItem->pos.y - WALL_L;

View file

@ -2,6 +2,7 @@
#define T1M_GAME_CAMERA_H
#include "game/types.h"
#include <stdint.h>
void InitialiseCamera();

View file

@ -1,16 +1,18 @@
#include "game/cinema.h"
#include "3dsystem/3d_gen.h"
#include "3dsystem/phd_math.h"
#include "game/cinema.h"
#include "game/const.h"
#include "game/control.h"
#include "game/draw.h"
#include "game/gameflow.h"
#include "game/items.h"
#include "game/setup.h"
#include "game/types.h"
#include "game/vars.h"
#include "specific/display.h"
#include "specific/input.h"
#include "specific/sndpc.h"
#include "config.h"
#include "util.h"
static int32_t OldSoundIsActive;

View file

@ -1,12 +1,14 @@
#include "game/collide.h"
#include "3dsystem/3d_gen.h"
#include "3dsystem/phd_math.h"
#include "game/collide.h"
#include "game/const.h"
#include "game/control.h"
#include "game/draw.h"
#include "game/items.h"
#include "game/sound.h"
#include "game/sphere.h"
#include "game/types.h"
#include "game/vars.h"
#include "util.h"

View file

@ -2,6 +2,7 @@
#define T1M_GAME_COLLIDE_H
#include "types.h"
#include <stdint.h>
void GetCollisionInfo(

View file

@ -1,9 +1,10 @@
#include "game/control.h"
#include "3dsystem/phd_math.h"
#include "game/camera.h"
#include "game/control.h"
#include "game/const.h"
#include "game/demo.h"
#include "game/game.h"
#include "game/gameflow.h"
#include "game/hair.h"
#include "game/inv.h"
#include "game/items.h"
@ -20,9 +21,12 @@
#include "specific/input.h"
#include "specific/shed.h"
#include "specific/sndpc.h"
#include "config.h"
#include "util.h"
#include <stddef.h>
int32_t ControlPhase(int32_t nframes, int32_t demo_mode)
{
int32_t return_val = 0;

View file

@ -2,6 +2,7 @@
#define T1M_GAME_CONTROL_H
#include "game/types.h"
#include <stdint.h>
int32_t ControlPhase(int32_t nframes, int32_t demo_mode);

View file

@ -1,13 +1,15 @@
#include "game/control.h"
#include "game/demo.h"
#include "game/const.h"
#include "game/control.h"
#include "game/game.h"
#include "game/gameflow.h"
#include "game/items.h"
#include "game/setup.h"
#include "game/setup.h"
#include "game/text.h"
#include "game/types.h"
#include "game/vars.h"
#include "specific/frontend.h"
#include "util.h"
int32_t StartDemo()

View file

@ -1,14 +1,15 @@
#include "game/draw.h"
#include "3dsystem/3d_gen.h"
#include "3dsystem/3d_insert.h"
#include "3dsystem/scalespr.h"
#include "game/const.h"
#include "game/draw.h"
#include "game/game.h"
#include "game/hair.h"
#include "game/health.h"
#include "game/vars.h"
#include "specific/output.h"
#include "config.h"
#include "util.h"
int32_t DrawPhaseCinematic()

View file

@ -2,6 +2,7 @@
#define T1M_GAME_DRAW_H
#include "game/types.h"
#include <stdint.h>
int32_t DrawPhaseCinematic();

View file

@ -1,5 +1,6 @@
#include "3dsystem/phd_math.h"
#include "game/effects/blood.h"
#include "3dsystem/phd_math.h"
#include "game/items.h"
#include "game/vars.h"

View file

@ -2,6 +2,7 @@
#define T1M_GAME_EFFECTS_BLOOD_H
#include "game/types.h"
#include <stdint.h>
void SetupBlood(OBJECT_INFO *obj);

View file

@ -1,9 +1,10 @@
#include "game/effects/body_part.h"
#include "3dsystem/3d_gen.h"
#include "3dsystem/phd_math.h"
#include "game/collide.h"
#include "game/control.h"
#include "game/draw.h"
#include "game/effects/body_part.h"
#include "game/game.h"
#include "game/items.h"
#include "game/sound.h"

View file

@ -2,6 +2,7 @@
#define T1M_GAME_EFFECTS_BODY_PART_H
#include "game/types.h"
#include <stdint.h>
void SetupBodyPart(OBJECT_INFO *obj);

View file

@ -1,6 +1,7 @@
#include "game/effects/bubble.h"
#include "3dsystem/phd_math.h"
#include "game/control.h"
#include "game/effects/bubble.h"
#include "game/game.h"
#include "game/items.h"
#include "game/sound.h"

View file

@ -2,6 +2,7 @@
#define T1M_GAME_EFFECTS_BUBBLE_H
#include "game/types.h"
#include <stdint.h>
void SetupBubble(OBJECT_INFO *obj);

View file

@ -1,6 +1,8 @@
#include "game/effects/chain_block.h"
#include "game/sound.h"
#include "game/vars.h"
#include "config.h"
// original name: ChainBlockFX

View file

@ -1,5 +1,7 @@
#include "game/effects/dino_stomp.h"
#include "game/vars.h"
#include "util.h"
#define MAX_BOUNCE 100

View file

@ -1,6 +1,7 @@
#include "game/effects/earthquake.h"
#include "game/control.h"
#include "game/draw.h"
#include "game/effects/earthquake.h"
#include "game/game.h"
#include "game/sound.h"
#include "game/vars.h"

View file

@ -2,6 +2,7 @@
#define T1M_GAME_OBJECTS_EARTH_QUAKE_H
#include "game/types.h"
#include <stdint.h>
void SetupEarthquake(OBJECT_INFO *obj);

View file

@ -1,4 +1,5 @@
#include "game/effects/explosion.h"
#include "game/items.h"
#include "game/sound.h"
#include "game/vars.h"

View file

@ -2,6 +2,7 @@
#define T1M_GAME_EFFECTS_EXPLOSION_H
#include "game/types.h"
#include <stdint.h>
void SetupExplosion(OBJECT_INFO *obj);

View file

@ -1,4 +1,5 @@
#include "game/effects/finish_level.h"
#include "game/vars.h"
// original name: finish_level_effect

View file

@ -1,4 +1,5 @@
#include "game/effects/flicker.h"
#include "game/control.h"
#include "game/sound.h"
#include "game/vars.h"

View file

@ -1,4 +1,5 @@
#include "game/effects/flipmap.h"
#include "game/control.h"
// original name: flip_map_effect

View file

@ -1,4 +1,5 @@
#include "game/effects/flood.h"
#include "game/sound.h"
#include "game/vars.h"

View file

@ -1,5 +1,6 @@
#include "3dsystem/3d_gen.h"
#include "game/effects/lara_effects.h"
#include "3dsystem/3d_gen.h"
#include "game/vars.h"
#include "config.h"

View file

@ -1,9 +1,10 @@
#include "game/effects/missile.h"
#include "3dsystem/3d_gen.h"
#include "3dsystem/phd_math.h"
#include "game/collide.h"
#include "game/control.h"
#include "game/draw.h"
#include "game/effects/missile.h"
#include "game/game.h"
#include "game/items.h"
#include "game/sound.h"

View file

@ -2,6 +2,7 @@
#define T1M_GAME_EFFECTS_MISSILE_H
#include "game/types.h"
#include <stdint.h>
#define SHARD_DAMAGE 30

View file

@ -1,4 +1,5 @@
#include "game/effects/powerup.h"
#include "game/sound.h"
#include "game/vars.h"

View file

@ -1,4 +1,5 @@
#include "game/effects/raising_block.h"
#include "game/sound.h"
#include "game/vars.h"

View file

@ -1,4 +1,5 @@
#include "game/effects/ricochet.h"
#include "game/game.h"
#include "game/items.h"
#include "game/sound.h"

View file

@ -2,6 +2,7 @@
#define T1M_GAME_EFFECTS_RICOCHET_H
#include "game/types.h"
#include <stdint.h>
void SetupRicochet(OBJECT_INFO *obj);

View file

@ -1,4 +1,5 @@
#include "game/effects/sand.h"
#include "game/sound.h"
#include "game/vars.h"

View file

@ -1,6 +1,7 @@
#include "game/effects/splash.h"
#include "3dsystem/phd_math.h"
#include "game/control.h"
#include "game/effects/splash.h"
#include "game/game.h"
#include "game/items.h"
#include "game/sound.h"

View file

@ -2,6 +2,7 @@
#define T1M_GAME_EFFECTS_SPLASH_H
#include "game/types.h"
#include <stdint.h>
void SetupSplash(OBJECT_INFO *obj);

View file

@ -1,4 +1,5 @@
#include "game/effects/stairs2slope.h"
#include "game/sound.h"
#include "game/vars.h"

View file

@ -1,4 +1,5 @@
#include "game/effects/twinkle.h"
#include "game/game.h"
#include "game/items.h"
#include "game/sphere.h"

View file

@ -2,6 +2,7 @@
#define T1M_GAME_EFFECTS_TWINKLE_H
#include "game/types.h"
#include <stdint.h>
void SetupTwinkle(OBJECT_INFO *obj);

View file

@ -1,5 +1,6 @@
#include "game/draw.h"
#include "game/effects/waterfall.h"
#include "game/draw.h"
#include "game/game.h"
#include "game/items.h"
#include "game/vars.h"

View file

@ -2,6 +2,7 @@
#define T1M_GAME_EFFECTS_WATERFALL_H
#include "game/types.h"
#include <stdint.h>
#define WATERFALL_RANGE (WALL_L * 10) // = 10240

View file

@ -1,8 +1,9 @@
#include "game/game.h"
#include "game/camera.h"
#include "game/const.h"
#include "game/control.h"
#include "game/draw.h"
#include "game/game.h"
#include "game/gameflow.h"
#include "game/savegame.h"
#include "game/setup.h"
#include "game/text.h"
@ -13,9 +14,12 @@
#include "specific/output.h"
#include "specific/shed.h"
#include "specific/sndpc.h"
#include "config.h"
#include "util.h"
#include <stdio.h>
int32_t StartGame(int32_t level_num, GAMEFLOW_LEVEL_TYPE level_type)
{
// T1M: level_type argument is missing in OG

View file

@ -2,6 +2,7 @@
#define T1M_GAME_GAME_H
#include "game/types.h"
#include <stdint.h>
int32_t StartGame(int32_t level_num, GAMEFLOW_LEVEL_TYPE level_type);

View file

@ -1,10 +1,10 @@
#include "game/gameflow.h"
#include "game/cinema.h"
#include "game/const.h"
#include "game/control.h"
#include "game/game.h"
#include "game/gameflow.h"
#include "game/inv.h"
#include "game/lara.h"
#include "game/savegame.h"
#include "game/vars.h"
#include "specific/display.h"
#include "specific/file.h"
@ -14,9 +14,12 @@
#include "specific/sndpc.h"
#include "config.h"
#include "json_parser/json.h"
#include "json_utils.h"
#include "util.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct {

View file

@ -2,6 +2,7 @@
#define T1M_GAME_GAMEFLOW_H
#include "game/types.h"
#include <stdint.h>
// T1M: gameflow implementation.

View file

@ -1,12 +1,13 @@
#include "game/hair.h"
#include "3dsystem/3d_gen.h"
#include "3dsystem/phd_math.h"
#include "game/const.h"
#include "game/control.h"
#include "game/draw.h"
#include "game/game.h"
#include "game/hair.h"
#include "game/types.h"
#include "game/vars.h"
#include "config.h"
#include "util.h"

View file

@ -1,11 +1,17 @@
#include "3dsystem/scalespr.h"
#include "game/health.h"
#include "3dsystem/scalespr.h"
#include "game/const.h"
#include "game/text.h"
#include "game/types.h"
#include "game/vars.h"
#include "specific/output.h"
#include "config.h"
#include "util.h"
#include <stdio.h>
#define MAX_PICKUP_COLUMNS 4
#define MAX_PICKUPS 16

Some files were not shown because too many files have changed in this diff Show more