• 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.
1
Expert's answer
2019-09-23T05:04:05-0400
Dear Mualusi, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment