-
Notifications
You must be signed in to change notification settings - Fork 0
/
mazefuncs.h
32 lines (20 loc) · 1.16 KB
/
mazefuncs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/************************************************************
*
* mazefuncs.h
*
* header file corresponding with mazefuncs.c
*
* */
#ifndef _MAZEFUNCS_H_
#define _MAZEFUNCS_H_
void calculateCentroid(XYPOS* positions, int* centroid_x, int* centroid_y, int numAvatars);
int updateLocation(XYPOS* positions, int* xpos, int* ypos, int avatar_id);
int rankMoves(int xpos, int ypos, int centroid_x, int centroid_y, int* moves, int MazeWidth, int MazeHeight, unsigned int path_maze[MazeWidth][MazeHeight]);
void updateWalls(int xpos, int ypos, int direction, int MazeWidth, int MazeHeight, unsigned int *wall_maze[][MAXSIZE]);
int checkWalls(int xpos, int ypos, int direction, int MazeWidth, int MazeHeight, unsigned int *wall_maze[][MAXSIZE]);
void emptyArray(int MazeWidth, int MazeHeight, unsigned int maze[MazeWidth][MazeHeight]);
XYPOS getNewPosition(int xpos, int ypos, int direction);
void fillDeadEnds(int centroid_x, int centroid_y, int MazeWidth, int MazeHeight, unsigned int *wall_maze[][MAXSIZE]);
void establishBoundaries(int MazeWidth, int MazeHeight, unsigned int *wall_maze[][MAXSIZE]);
int onCentroid(int x, int y, int centroid_x, int centroid_y);
#endif