Question: I have an assignment in c + + and I would like a little insight on what I am actually needing to do with the
I have an assignment in c and I would like a little insight on what I am actually needing to do with the following instructions: Task : Build the skeleton classes moderate
The header files for the classes are given to you, you will need to create the definitions for all the methods in the classes. Create empty ones at first and begin slowly filling them in
You will want to have the constructors for the children, pass along the construction to their parents. Your Object class should exhibit the following features.
Object should maintain the following protected members:
const Type name Type::none ; VectorD position; const GUI& gui; IMPORTANT
Object should have the following public accessor methods ie getterssetters:
getPosition; setPosition; getDimensions; getName;
Object should have the following enums:
enum class Command up down, left, right, attack, jump, NA ; enum class Type none, bridgecenter, bridgeend, bridgestart, centerblock, topblock, treebackground, water, watershore, watertop, waterwall, waterwallcorner, player enemy;
Object should overload the following constructors:
Object delete; ObjectVectorD position, Type name, const GUI& gui;
Object should have the following purely abstract method
update
The Object.h file also contains the definition of the VectorD struct.
Your Block class should exhibit the following features.
Public child of the Object class
Block should maintain NO private members:
Block should overload the following constructors:
Block delete; BlockVectorD position, Object::Type name, const GUI& gui;
Block should override the following virtual method
update;
This is an empty method and only here to make the class instantiable!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
