Closed enochtsang closed 8 years ago
Good idea. However, we need a way for Universe to distinguish between a friendly and enemy projectile when Universe passes the object to the Collision Handler. You mentioned a fix where we could create another listener function where it is like notify_enemy_projectile
or notify_friendly_projectile
. I think that is a good idea.
Please implement the fix to the above problem, and then we can merge this. Good job and good idea!
Instead of notify_enemy...
or notify_friendly...
I set an argument for the team that the projectile is affiliated with. I think this would provide greater flexibility for us if we wanted to have neutral objects or anything else. Let me know what you think.
I think it looks good. Hopefully everything is setup for you to do your collision handler. Good luck!
refactored missile launcher to have projectile listeners instead of explicitly missile listeners