refactor: header file for every module

This commit is contained in:
2026-09-19 13:11:53 +02:00
parent b26070a518
commit dda0d38e22
36 changed files with 968 additions and 272 deletions
+21
View File
@@ -0,0 +1,21 @@
#ifndef PATHFINDING_H
#define PATHFINDING_H
#include <raylib.h>
#include <stdbool.h>
#include "terrain.h"
#define PATH_MAX_WAYPOINTS 16
typedef struct {
Vector2 waypoints[PATH_MAX_WAYPOINTS];
int count;
} Path;
bool IsWaterWithClearance(Terrain *terrain, Vector2 pos, float clearance);
Vector2 GetRandomWaterPositionNear(Terrain *terrain, Vector2 origin, float maxRadius,
float clearance);
Path FindWaterPath(Terrain *terrain, Vector2 start, Vector2 goal, float clearance);
#endif