I want to have a bullet hit an enemy and then call a method in the enemy's class to deal damage to it equal to its power. Anyone have any idea how to do this? Thanks
Enemy enemy = (Enemy) getOneIntersectingObject(Enemy.class); if (enemy != null) { enemy.dealDamage(10); }