09-19-2019, 11:49 PM
Brian,
I am finally getting back to this and ran into another issue.
In the example code , in the GameObject.h file, there is an enum for Types that define, Bullet, Missle1, Missle2, Alien and so on. However, the there is also an Alien class where there is an Alien.h and Alien.cpp for this Alien class but the Types Alien conflicts with the Alien class name. I ended up renaming the Alien type to kAlien but may look at convert this to an enum class so it is does not conflict.
Also, I have finally been able to get the Alien on screen, but I am doing this from Game.cpp but it seems it may need to be in GroupManager.cpp. Can you verify where you think it would be best to place this?
One other thing, on page 130 under the heading "Da Baddies. it describes the AlienCoords array which I have created. However, later on page 165 there is a reference to EnemyCoords which looks just like AlienCoords. Can you clarify this for me?
Cheers,
Jon
I am finally getting back to this and ran into another issue.
In the example code , in the GameObject.h file, there is an enum for Types that define, Bullet, Missle1, Missle2, Alien and so on. However, the there is also an Alien class where there is an Alien.h and Alien.cpp for this Alien class but the Types Alien conflicts with the Alien class name. I ended up renaming the Alien type to kAlien but may look at convert this to an enum class so it is does not conflict.
Also, I have finally been able to get the Alien on screen, but I am doing this from Game.cpp but it seems it may need to be in GroupManager.cpp. Can you verify where you think it would be best to place this?
One other thing, on page 130 under the heading "Da Baddies. it describes the AlienCoords array which I have created. However, later on page 165 there is a reference to EnemyCoords which looks just like AlienCoords. Can you clarify this for me?
Cheers,
Jon