/* File: cities.h
 * Desc: Define cities and city pairs
 * Cristina Cifuentes
 * 3 August 1997
*/

#ifndef __cities_h
#define __cities_h

#include "strlib.h"


/** Define capital cities in Australia in City data type **/
#define MAXCITIES	8	/* # of capital cities in Australia */
#define NUMCITIES	7	/* maximum index used in an array of City */

typedef enum _City { Hobart = 0, Melbourne, Sydney, Brisbane,
		     Adelaide, Canberra, Perth, Darwin,
		     NoCity
} City;


/* ARRAY OF CITY NAMES DECLARATION */
static String cityName[MAXCITIES] = {
    "Hobart", "Melbourne", "Sydney", "Brisbane",
    "Adelaide", "Canberra", "Perth", "Darwin"  };



/** Define a (to,from) city pair **/
typedef struct _cityPair {
	City to;  	/* target city */
	City from;  	/* source city */
} cityPair;


/* TYPE DEFINITION OF 2-DIMENSIONAL ARRAY OF CITY DISTANCES */
typedef int FlightRouteType[MAXCITIES][MAXCITIES];


/* Function prototypes */

City stringToCity (String s);
/* Converts a string to a City enumerated type and returns it */

#endif

