void initLocationList()
Initialize location list
void initDistanceTable()
Initialize distance table
int readLocationFile(char *path)
Read information about the location of things from a file
path - Path of the file
RETURN - Return NULL or -1(Wrong path), -2(No file), -3(Invaild value)
int setLocationFromFile(struct _location *location, char *path)
Set location from file
location - Location information of things
path - Path of the file
void setRandomLocation(struct _location *location)
Set the random location to be placed
location - Location information of things
void setLocation(int thing_id, int x, int y)
Manually set the position of a thing
thing_id - Thing number
x - coordinates of x
y - coordinates of y
struct _location getLocation(int thing_id)
Return location of thing
thing_id - Thing number
float **getDistanceTable()
Return distance table
RETURN - Distance table
void freeDistanceTable()
Free distance table