Hi,
I apologize if this is in the wrong board. The moderators can move it if it is.
I have two abstract classes. Rocket and Projectile, which look like this (I have only left the relevant parts)
Then I have subclasses extending those two classes (I will show NormalRocket and MachineGunProjectile) which call the super of bounds like so:
I have a level class which contains two lists, one for rockets and the other for projectiles, and rockets and projectiles are added to the respective lists:
I am using the following code to check for collision between the projectiles and rockets. The problem is, that "HIT" is not printed and I cannot figure out why:
I do not know why this does not work, I have tried 2 different techniques so far and neither work. Can anyone help me solve this problem? I can post more code if it is necessary.