You could add an abstract onCollision()
method to Entity and move the CheckCollision
method to Entity so it would be:
arrow.checkCollision(monster)
That is all that I can think of, it looks pretty solid to me.
You could add an abstract onCollision()
method to Entity and move the CheckCollision
method to Entity so it would be:
arrow.checkCollision(monster)
That is all that I can think of, it looks pretty solid to me.