Question: Ex. 3- Class specification For an adventure game, a class allowing the generation of different investigators needs to be specified A list of a few

Ex. 3- Class specification For an adventure game, a class allowing the generation of different investigators needs to be specified A list of a few basic characteristics is provided: speed e hide . lore . listen . dodge persuade focus e escape . fight job e name run sanity search e stamina ? possession visit climb . home ? luck 1. Separate the methods from the attributes and provide potentially missing attributes 2. Write the class interface Investigator, that defines the methods and attributes of an investigator In particular specify whether a particular method or attribute should be public or private. Note: although it is not asked to implement the class, only to define it, feel free to do so Ex. 4-Class implementation 1. Following the definition of the Circle class in chapter 13, write and implement the following simple classes. Parallelogram Trapezium ? Triangle Rectangle 2. Reorganise and adjust the above classes to take advantage of inheritance and polymorphism. 3. Add the necessary code to actually draw the above shapes using OpenGL Ex. 5-Classes and OpenGL Write a C++class to draw and move a car using the geometrical classes from exercise 3. The car should be similar to the one below, and should move back and forth from left to right. This can be easily achieved by moving all the geometrical object it is composed of. More complex car shapes can be implemented Hint: the display can be updated using the function glutTimerFunc
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
