Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ////////////////////////////////////////////////////////////////////////
- // COMP2521 18x1 ... the Fury of Dracula
- // Map.h: an interface to a Map data type
- //
- // 2017-11-30 v1.0 Team Dracula <cs2521@cse.unsw.edu.au>
- #ifndef MAP_H_
- #define MAP_H_
- #include <stdbool.h>
- #include "Places.h"
- typedef struct edge {
- LocationID start;
- LocationID end;
- TransportID type;
- } edge;
- // graph representation is hidden
- typedef struct map *Map;
- // operations on graphs
- Map newMap (void);
- void disposeMap (Map);
- void showMap (Map);
- int numV (Map);
- int numE (Map, TransportID);
- int connections(Map g, LocationID start, LocationID end, TransportID []);
- int numberOfConnections(Map g, LocationID start, bool road, bool rail, bool sea);
- int *locationsConnected (Map g, LocationID start, int arraySize, bool road, bool rail, bool sea);
- #endif // !defined(MAP_H_)
Add Comment
Please, Sign In to add comment