I have a player and an enemy. Now I want the player to hit, which inflicts damage to every enemy in a particular range.
how do I do that? my method looks kinda empty atm, because I'm not sure how to access the found enemies beacuse I then have to
make the enemy to "play" the getHit method.
Not sure if my point is too lose here, do you guys even understand what I'm talking about?
thats my method so far.
any suggestions?
public void hit()
{
if (!getObjectsInRange(5, Enemy.class).isEmpty())
{
This is where I need the found enemies to play the getHit method
}
}

