• 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
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment