Menu

[solved] – Question 95101

• void loadFile(string) – Given a filename, create the corresponding maze. Print the
following message to cout: “Loading level file <level>”, where <level> is replaced
by the filename. You need to populate two arrays: char** map and Entity** entities.
NOTE: if the file cannot be read, throw a FileException. If the maze dimensions given
on the first line of the level text file do not correspond to the provided map, thow a
MapException. Finally, when using pointers, throw NullPointerException where appropriate.
NullPointerException is a lot more informative than a segmentation fault, and
will help you debug your program
void draw() – Draw the map on the screen (cout). Note: the map array provides information
about walls and floors; you must combine this information with the list of entities
stored in the entities array.

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *