refactor: header file for every module
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user