I'm trying to inherit a certain class into two subclasses in C++. I want the subclasses to run side by side, but they both inherit the superclass entity.hpp:
#include "../entity.hpp"
class Npc : public Entity
{}
#include "../entity.hpp"
class Human : public Entity
{}
Of course, when I do
#include "Npc.hpp"
#include "Human.hpp"
In the same file, I run into a problem because entity.hpp is included twice. How would I get around this?
EDIT: The .cpp files were a typo.