-
- Role-playing games require a number of different types of data resource, e.g. creature statistics, item information, dialogue text, model geometry and texture bitmaps. Each type of resource has its own file format that the game engine must be able to read. We have found that Over the course of the game's development these formats change a great deal. Data fields are often added or modified to support new features that were not in the original game design. In order to avoid constant modifications to the game engine itself, what is required is a more generic file format that could be used to store all of these types of data.
- Your job is to design a file format and a C++ class that allows the game engine to open, read, and close a filw. The ability to change the file is not necessary so no write operation is required. To demonstrate that it works you must write a program that uses this class to open and read the files and display the following information: