Kinda of a hard question to summarize. I have an Entity class that has a Move class object as a member. The Move class has a variable of a class that takes an Entity in a function, is there a way to include the class that takes Entity in a function in move without trouble? Since Move is undefined when you include the class that takes an entity.
Here's an example.
Entity.h
#pragma once
#include "Move.h"
class Entity
{
public:
Entity();
protected:
private:
Move move_var;
};
Move.h
#pragma once
#include "TakesAnEntity.h"
class Move
{
public:
Move();
TakesAnEntity obj;
protected:
private:
};
TakesAnEntity.h
#pragma once
#include "Entity.h"
class TakesAnEntity
{
public:
TakesAnEntity();
void Func(Entity entity_obj);
protected:
private:
};
Any help is appreciated.