Question: could you show me how to put build classes and cpp file in c + + , i am not understanding these instructions? Your Object
could you show me how to put build classes and cpp file in c i am not understanding these instructions? 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
