#ifndef LOADWS_H #define LOADWS_H #include "window.h" #include "trulla.h" // Function Prototypes /* Function LoadFile is used to load a workspace file, draw the corresponding grid and initialize such values as workspace size and the initial goal. It expects the name of the workspace file or NULL. If NULL is sent, the function will prompt the user for the name of the workspace file. There is no return value. The program will terminate with an error message if the file cannot be opened or if memory could not be allocated for some workspace variables. */ void LoadFile ( Window *win, char wsFileName[] ); // Function Prototypes void ReadWorkSpaceFile ( char wsFileName[] ); void DrawGrid (Window *win); void InitGridParams (); void ColorCell (Window *win, int left, int top, int right, int bottom, GRIDEL * tempGridPtr ); void DisplayOptions (); void DrawGoalIndicator (Window *win); // globals defined in loadws.cpp which are needed by other files. extern int pathsAreDisplayed; extern GRIDEL * gridPtr; extern int gridelOffset; extern int goalCellX, goalCellY; extern int currCellX, currCellY; extern float feetPerGridel; #endif