SDLGameEngine

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

Data Structures | Defines | Functions

# include/sgepathfinder.h File Reference

A* path finding. More...

Go to the source code of this file.

## Data Structures
struct | SGEPATHFINDERINFO
| holds information about a possible path More...
struct | SGEPATHFINDER
| a pathfinder struct More...
## Defines
#define | DISABLE_DIAGONAL 0
#define | ENABLE_DIAGONAL 1
## Functions
SGEPATHFINDER * | sgePathFinderNew (int width, int height)
| create a new path finder with a grid of width x height, diagonal movement enabled
SGEPATHFINDER * | sgePathFinderNewDiagonal (int width, int height, int diagonal)
| create a new path finder with a grid of width x height
void | sgePathFinderDestroy (SGEPATHFINDER *p)
| destroy a SGEPATHFINDER
SGEPATHFINDERINFO * | sgePathFinderInfoNew (int x, int y, int startWeight, int targetWeight, void *parent)
| create a new SGEPATHFINDERINFO
void | sgePathFinderInfoDestroy (SGEPATHFINDERINFO *pi)
| destroy a SGEPATHFINDERINFO
void | sgePathFinderDiagonal (SGEPATHFINDER *p, int diagonal)
| enable or disable diagonal movement
void | sgePathFinderSet (SGEPATHFINDER *p, int x, int y, int value)
| set a position in the data grid
int | sgePathFinderGet (SGEPATHFINDER *p, int x, int y)
| get the value of a position in the data grid
int | sgePathFinderFind (SGEPATHFINDER *p, int startx, int starty, int destx, int desty)
| find a path between two points on the datagrid

## Detailed Description

A* path finding.

Definition in file sgepathfinder.h.

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines