11-04-2018, 04:20 AM
On page 88 of the book it describes creating an Objects class in a file but it does not state that a Objects.h needs to be created nor does it mention the Objects.cpp file. However, this and the associated Objects.cpp is already in the InvaderStart.zip BasicInvaders project.
Another issue is that on page 90, the description for the code that goes into Shooter.cpp shows it inheriting from Objects by passing f and fh to an Objects constructor but there is no associated constructor in the Objects files from BasicInvaders project. The Invader project from InvaderFin.zip does however have the proper Objects constructor "Objects(char*, MyFiles*)" needed to run the code from the book.
Another issue is that on page 90, the description for the code that goes into Shooter.cpp shows it inheriting from Objects by passing f and fh to an Objects constructor but there is no associated constructor in the Objects files from BasicInvaders project. The Invader project from InvaderFin.zip does however have the proper Objects constructor "Objects(char*, MyFiles*)" needed to run the code from the book.