Original Post
I have a lifeform class that is a base class for the player and monster classes. I have a battle class in which I store the player and monsters who are in the battle. I want to make an attack function in the lifeform class, but it needs to know about the player and monsters in the battle. I cannot pass them as parameters though because it doesn't know what Monster and Player are. I can't include monster.h and player.h in the parent class. The only option I can think of is make the attack function in the battle class, unless there is something I am not thinking of which could very well be so.